public class IndexerSQLMetadataStorageCoordinator extends Object implements IndexerMetadataStorageCoordinator
Constructor and Description |
---|
IndexerSQLMetadataStorageCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
MetadataStorageTablesConfig dbTables,
SQLMetadataConnector connector) |
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 database.
|
void |
deleteSegments(Set<io.druid.timeline.DataSegment> segments) |
List<io.druid.timeline.DataSegment> |
getUnusedSegmentsForInterval(String dataSource,
org.joda.time.Interval interval) |
List<io.druid.timeline.DataSegment> |
getUsedSegmentsForInterval(String dataSource,
org.joda.time.Interval interval) |
void |
updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) |
@Inject public IndexerSQLMetadataStorageCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper, MetadataStorageTablesConfig dbTables, SQLMetadataConnector connector)
public List<io.druid.timeline.DataSegment> getUsedSegmentsForInterval(String dataSource, org.joda.time.Interval interval) throws IOException
getUsedSegmentsForInterval
in interface IndexerMetadataStorageCoordinator
IOException
public Set<io.druid.timeline.DataSegment> announceHistoricalSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
announceHistoricalSegments
in interface IndexerMetadataStorageCoordinator
segments
- set of segments to addIOException
public void updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) throws IOException
updateSegmentMetadata
in interface IndexerMetadataStorageCoordinator
IOException
public void deleteSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
deleteSegments
in interface IndexerMetadataStorageCoordinator
IOException
public List<io.druid.timeline.DataSegment> getUnusedSegmentsForInterval(String dataSource, org.joda.time.Interval interval)
getUnusedSegmentsForInterval
in interface IndexerMetadataStorageCoordinator
Copyright © 2015. All rights reserved.