public class IndexerDBCoordinator extends Object
| Constructor and Description |
|---|
IndexerDBCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
DbTablesConfig dbTables,
DbConnector dbConnector) |
| 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 IndexerDBCoordinator(com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
DbTablesConfig dbTables,
DbConnector dbConnector)
public List<io.druid.timeline.DataSegment> getUsedSegmentsForInterval(String dataSource, org.joda.time.Interval interval) throws IOException
IOExceptionpublic Set<io.druid.timeline.DataSegment> announceHistoricalSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
segments - set of segments to addIOException - if a database error occurspublic void updateSegmentMetadata(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOExceptionpublic void deleteSegments(Set<io.druid.timeline.DataSegment> segments) throws IOException
IOExceptionCopyright © 2015. All rights reserved.