public class MetadataStoreBasedUsedSegmentLister extends Object implements UsedSegmentLister
Constructor and Description |
---|
MetadataStoreBasedUsedSegmentLister(IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator) |
Modifier and Type | Method and Description |
---|---|
List<io.druid.timeline.DataSegment> |
getUsedSegmentsForInterval(String dataSource,
org.joda.time.Interval interval)
Get all segments which may include any data in the interval and are flagged as used.
|
@Inject public MetadataStoreBasedUsedSegmentLister(IndexerMetadataStorageCoordinator indexerMetadataStorageCoordinator)
public List<io.druid.timeline.DataSegment> getUsedSegmentsForInterval(String dataSource, org.joda.time.Interval interval) throws IOException
UsedSegmentLister
getUsedSegmentsForInterval
in interface UsedSegmentLister
dataSource
- The datasource to queryinterval
- The interval for which all applicable and used datasources are requested. Start is inclusive, end is exclusiveIOException
Copyright © 2011–2015. All rights reserved.