public class MetadataResource extends Object
| Constructor and Description |
|---|
MetadataResource(SegmentsMetadataManager segmentsMetadataManager,
IndexerMetadataStorageCoordinator metadataStorageCoordinator,
AuthorizerMapper authorizerMapper,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllUsedSegments(javax.servlet.http.HttpServletRequest req,
Set<String> dataSources,
String includeOvershadowedStatus) |
javax.ws.rs.core.Response |
getDataSources(String full,
javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req) |
javax.ws.rs.core.Response |
getDataSourceWithUsedSegments(String dataSourceName)
The difference of this method from
getUsedSegmentsInDataSource(java.lang.String, java.lang.String) is that the latter returns only a list of
segments, while this method also includes the properties of data source, such as the time when it was created. |
javax.ws.rs.core.Response |
getUsedSegmentsInDataSource(String dataSourceName,
String full) |
javax.ws.rs.core.Response |
getUsedSegmentsInDataSourceForIntervals(String dataSourceName,
String full,
List<org.joda.time.Interval> intervals)
This is a
POST method to pass the list of intervals in the body,
see https://github.com/apache/druid/pull/2109#issuecomment-182191258 |
javax.ws.rs.core.Response |
isSegmentUsed(String dataSourceName,
String segmentId) |
@Inject public MetadataResource(SegmentsMetadataManager segmentsMetadataManager, IndexerMetadataStorageCoordinator metadataStorageCoordinator, AuthorizerMapper authorizerMapper, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public javax.ws.rs.core.Response getDataSources(String full, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest req)
public javax.ws.rs.core.Response getAllUsedSegments(@Context
javax.servlet.http.HttpServletRequest req,
@Nullable
Set<String> dataSources,
@Nullable
String includeOvershadowedStatus)
public javax.ws.rs.core.Response getDataSourceWithUsedSegments(String dataSourceName)
getUsedSegmentsInDataSource(java.lang.String, java.lang.String) is that the latter returns only a list of
segments, while this method also includes the properties of data source, such as the time when it was created.public javax.ws.rs.core.Response getUsedSegmentsInDataSource(String dataSourceName, @Nullable String full)
public javax.ws.rs.core.Response getUsedSegmentsInDataSourceForIntervals(String dataSourceName, @Nullable String full, List<org.joda.time.Interval> intervals)
POST method to pass the list of intervals in the body,
see https://github.com/apache/druid/pull/2109#issuecomment-182191258Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.