Class MetadataResource

java.lang.Object
org.apache.druid.server.http.MetadataResource

public class MetadataResource extends Object
  • Constructor Details

  • 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

      public javax.ws.rs.core.Response getAllUsedSegments(@Context javax.servlet.http.HttpServletRequest req, @Nullable Set<String> dataSources, @Nullable String includeOvershadowedStatus, @Nullable String includeRealtimeSegments)
    • getDataSourceWithUsedSegments

      public 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.
    • getUsedSegmentsInDataSource

      public javax.ws.rs.core.Response getUsedSegmentsInDataSource(String dataSourceName, @Nullable String full)
    • getUsedSegmentsInDataSourceForIntervals

      public javax.ws.rs.core.Response getUsedSegmentsInDataSourceForIntervals(String dataSourceName, @Nullable 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
    • getUnusedSegmentsInDataSource

      public javax.ws.rs.core.Response getUnusedSegmentsInDataSource(@Context javax.servlet.http.HttpServletRequest req, String dataSource, @Nullable String interval, @Nullable Integer limit, @Nullable String lastSegmentId, @Nullable String sortOrder)
    • getSegment

      public javax.ws.rs.core.Response getSegment(String dataSourceName, String serializedSegmentId, @Nullable Boolean includeUnused)
    • getDataSourceInformation

      public javax.ws.rs.core.Response getDataSourceInformation(@Context javax.servlet.http.HttpServletRequest req, List<String> dataSources)
      API to fetch DataSourceInformation for 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.