Package org.apache.druid.server.http
Class MetadataResource
java.lang.Object
org.apache.druid.server.http.MetadataResource
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataResource(SegmentsMetadataManager segmentsMetadataManager, IndexerMetadataStorageCoordinator metadataStorageCoordinator, AuthorizerMapper authorizerMapper, DruidCoordinator coordinator, CoordinatorSegmentMetadataCache coordinatorSegmentMetadataCache) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsegetAllUsedSegments(javax.servlet.http.HttpServletRequest req, Set<String> dataSources, String includeOvershadowedStatus, String includeRealtimeSegments) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetDataSourceInformation(javax.servlet.http.HttpServletRequest req, List<String> dataSources) API to fetchDataSourceInformationfor the specified datasources.javax.ws.rs.core.ResponsegetDataSources(String full, javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req) javax.ws.rs.core.ResponsegetDataSourceWithUsedSegments(String dataSourceName) The difference of this method fromgetUsedSegmentsInDataSource(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.ResponsegetSegment(String dataSourceName, String serializedSegmentId, Boolean includeUnused) javax.ws.rs.core.ResponsegetUnusedSegmentsInDataSource(javax.servlet.http.HttpServletRequest req, String dataSource, String interval, Integer limit, String lastSegmentId, String sortOrder) javax.ws.rs.core.ResponsegetUsedSegmentsInDataSource(String dataSourceName, String full) javax.ws.rs.core.ResponsegetUsedSegmentsInDataSourceForIntervals(String dataSourceName, String full, List<org.joda.time.Interval> intervals) This is aPOSTmethod to pass the list of intervals in the body, see https://github.com/apache/druid/pull/2109#issuecomment-182191258
-
Constructor Details
-
MetadataResource
@Inject public MetadataResource(SegmentsMetadataManager segmentsMetadataManager, IndexerMetadataStorageCoordinator metadataStorageCoordinator, AuthorizerMapper authorizerMapper, DruidCoordinator coordinator, @Nullable CoordinatorSegmentMetadataCache coordinatorSegmentMetadataCache)
-
-
Method Details
-
getDataSources
public javax.ws.rs.core.Response getDataSources(String full, @Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest req) -
getAllUsedSegments
-
getDataSourceWithUsedSegments
The difference of this method fromgetUsedSegmentsInDataSource(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. -
getUsedSegmentsInDataSource
-
getUsedSegmentsInDataSourceForIntervals
public javax.ws.rs.core.Response getUsedSegmentsInDataSourceForIntervals(String dataSourceName, @Nullable String full, List<org.joda.time.Interval> intervals) This is aPOSTmethod to pass the list of intervals in the body, see https://github.com/apache/druid/pull/2109#issuecomment-182191258 -
getUnusedSegmentsInDataSource
-
getSegment
-
getDataSourceInformation
public javax.ws.rs.core.Response getDataSourceInformation(@Context javax.servlet.http.HttpServletRequest req, List<String> dataSources) API to fetchDataSourceInformationfor the specified datasources.- Parameters:
dataSources- list of dataSources to be queried- Returns:
- information including schema details for the specified datasources
-
getBootstrapSegments
public javax.ws.rs.core.Response getBootstrapSegments()- Returns:
- all bootstrap segments determined by the coordinator.
-