public interface IndexerMetadataStorageCoordinator
Modifier and Type | Method and Description |
---|---|
Set<io.druid.timeline.DataSegment> |
announceHistoricalSegments(Set<io.druid.timeline.DataSegment> segments)
Attempts to insert a set of segments to the metadata storage.
|
void |
deleteSegments(Set<io.druid.timeline.DataSegment> segments) |
List<io.druid.timeline.DataSegment> |
getUnusedSegmentsForInterval(String dataSource,
org.joda.time.Interval interval)
Get all segments which include ONLY data within the given interval and are not flagged as used.
|
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.
|
void |
updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) |
List<io.druid.timeline.DataSegment> getUsedSegmentsForInterval(String dataSource, org.joda.time.Interval interval) throws IOException
dataSource
- The datasource to queryinterval
- The interval for which all applicable and used datasources are requested. Start is inclusive, end is exclusiveIOException
Set<io.druid.timeline.DataSegment> announceHistoricalSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
segments
- set of segments to addIOException
void updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOException
void deleteSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOException
List<io.druid.timeline.DataSegment> getUnusedSegmentsForInterval(String dataSource, org.joda.time.Interval interval)
dataSource
- The datasource the segments belong tointerval
- Filter the data segments to ones that include data in this interval exclusively. Start is inclusive, end is exclusiveCopyright © 2011–2015. All rights reserved.