Class SinkQuerySegmentWalker
java.lang.Object
org.apache.druid.segment.realtime.appenderator.SinkQuerySegmentWalker
- All Implemented Interfaces:
QuerySegmentWalker
Query handler for indexing tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionSinkQuerySegmentWalker(String dataSource, VersionedIntervalTimeline<String, org.apache.druid.segment.realtime.appenderator.SinkQuerySegmentWalker.SinkHolder> upgradedSegmentsTimeline, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ServiceEmitter emitter, QueryRunnerFactoryConglomerate conglomerate, QueryProcessingPool queryProcessingPool, Cache cache, CacheConfig cacheConfig, CachePopulatorStats cachePopulatorStats, PolicyEnforcer policyEnforcer) -
Method Summary
Modifier and TypeMethodDescription<T> QueryRunner<T>getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals) <T> QueryRunner<T>getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs) static StringmakeHydrantCacheIdentifier(FireHydrant hydrant) static StringmakeHydrantCacheIdentifier(SegmentId segmentId, int hydrantNumber) voidMust be called when a segment is announced by a task.voidMust be called when dropping sink from the sinkTimeline It is the responsibility of the caller to unregister all associated ids including the base id
-
Constructor Details
-
SinkQuerySegmentWalker
public SinkQuerySegmentWalker(String dataSource, VersionedIntervalTimeline<String, org.apache.druid.segment.realtime.appenderator.SinkQuerySegmentWalker.SinkHolder> upgradedSegmentsTimeline, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ServiceEmitter emitter, QueryRunnerFactoryConglomerate conglomerate, QueryProcessingPool queryProcessingPool, Cache cache, CacheConfig cacheConfig, CachePopulatorStats cachePopulatorStats, PolicyEnforcer policyEnforcer)
-
-
Method Details
-
getQueryRunnerForIntervals
public <T> QueryRunner<T> getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals) - Specified by:
getQueryRunnerForIntervalsin interfaceQuerySegmentWalker
-
getQueryRunnerForSegments
public <T> QueryRunner<T> getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs) - Specified by:
getQueryRunnerForSegmentsin interfaceQuerySegmentWalker
-
registerUpgradedPendingSegment
Must be called when a segment is announced by a task. Either the base segment upon allocation or any upgraded version due to a concurrent replace -
unregisterUpgradedPendingSegment
Must be called when dropping sink from the sinkTimeline It is the responsibility of the caller to unregister all associated ids including the base id -
makeHydrantCacheIdentifier
-
makeHydrantCacheIdentifier
-