Interface CoordinatorClient

    • Method Detail

      • isHandoffComplete

        com.google.common.util.concurrent.ListenableFuture<Boolean> isHandoffComplete​(String dataSource,
                                                                                      org.apache.druid.query.SegmentDescriptor descriptor)
        Checks if the given segment is handed off or not.
      • fetchSegment

        com.google.common.util.concurrent.ListenableFuture<org.apache.druid.timeline.DataSegment> fetchSegment​(String dataSource,
                                                                                                               String segmentId,
                                                                                                               boolean includeUnused)
        Fetches segment metadata for the given dataSource and segmentId. If includeUnused is set to false, the segment is not returned if it is marked as unused.
      • fetchServerViewSegments

        Iterable<ImmutableSegmentLoadInfo> fetchServerViewSegments​(String dataSource,
                                                                   List<org.joda.time.Interval> intervals)
        Fetches segments from the coordinator server view for the given dataSource and intervals.
      • fetchUsedSegments

        com.google.common.util.concurrent.ListenableFuture<List<org.apache.druid.timeline.DataSegment>> fetchUsedSegments​(String dataSource,
                                                                                                                          List<org.joda.time.Interval> intervals)
        Fetches segment metadata for the given dataSource and intervals.
      • fetchDataSourceInformation

        com.google.common.util.concurrent.ListenableFuture<List<DataSourceInformation>> fetchDataSourceInformation​(Set<String> datasources)
        Retrieves detailed metadata information for the specified data sources, which includes RowSignature.
      • withRetryPolicy

        CoordinatorClient withRetryPolicy​(ServiceRetryPolicy retryPolicy)
        Returns a new instance backed by a ServiceClient which follows the provided retryPolicy