public interface IndexerMetadataStorageCoordinator
| Modifier and Type | Method and Description |
|---|---|
SegmentIdentifier |
allocatePendingSegment(String dataSource,
String sequenceName,
String previousSegmentId,
org.joda.time.Interval interval,
String maxVersion)
Allocate a new pending segment in the pending segments table.
|
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.
|
List<io.druid.timeline.DataSegment> |
getUsedSegmentsForIntervals(String dataSource,
List<org.joda.time.Interval> intervals)
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 exclusiveIOExceptionList<io.druid.timeline.DataSegment> getUsedSegmentsForIntervals(String dataSource, List<org.joda.time.Interval> intervals) throws IOException
dataSource - The datasource to queryintervals - The intervals for which all applicable and used datasources are requested.IOExceptionSet<io.druid.timeline.DataSegment> announceHistoricalSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
segments - set of segments to addIOExceptionSegmentIdentifier allocatePendingSegment(String dataSource, String sequenceName, String previousSegmentId, org.joda.time.Interval interval, String maxVersion) throws IOException
dataSource - dataSource for which to allocate a segmentsequenceName - name of the group of ingestion tasks producing a segment seriespreviousSegmentId - previous segment in the series; may be null or empty, meaning this is the first segmentinterval - interval for which to allocate a segmentmaxVersion - use this version if we have no better version to use. The returned segment identifier may
have a version lower than this one, but will not have one higher.IOExceptionvoid updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOExceptionvoid deleteSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOExceptionList<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–2016. All rights reserved.