public class SinkQuerySegmentWalker extends Object implements QuerySegmentWalker
| Constructor and Description | 
|---|
SinkQuerySegmentWalker(String dataSource,
                      VersionedIntervalTimeline<String,Sink> sinkTimeline,
                      com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                      ServiceEmitter emitter,
                      QueryRunnerFactoryConglomerate conglomerate,
                      ExecutorService queryExecutorService,
                      Cache cache,
                      CacheConfig cacheConfig)  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> QueryRunner<T> | 
getQueryRunnerForIntervals(Query<T> query,
                          Iterable<org.joda.time.Interval> intervals)
Gets the Queryable for a given interval, the Queryable returned can be any version(s) or partitionNumber(s)
 such that it represents the interval. 
 | 
<T> QueryRunner<T> | 
getQueryRunnerForSegments(Query<T> query,
                         Iterable<SegmentDescriptor> specs)
Gets the Queryable for a given list of SegmentSpecs. 
 | 
static String | 
makeHydrantCacheIdentifier(FireHydrant input)  | 
public SinkQuerySegmentWalker(String dataSource, VersionedIntervalTimeline<String,Sink> sinkTimeline, com.fasterxml.jackson.databind.ObjectMapper objectMapper, ServiceEmitter emitter, QueryRunnerFactoryConglomerate conglomerate, ExecutorService queryExecutorService, Cache cache, CacheConfig cacheConfig)
public <T> QueryRunner<T> getQueryRunnerForIntervals(Query<T> query, Iterable<org.joda.time.Interval> intervals)
QuerySegmentWalkergetQueryRunnerForIntervals in interface QuerySegmentWalkerT - query result typequery - the query to find a Queryable forintervals - the intervals to find a Queryable forpublic <T> QueryRunner<T> getQueryRunnerForSegments(Query<T> query, Iterable<SegmentDescriptor> specs)
QuerySegmentWalkergetQueryRunnerForSegments in interface QuerySegmentWalkerT - the query result typequery - the query to return a Queryable forspecs - the list of SegmentSpecs to find a Queryable forpublic static String makeHydrantCacheIdentifier(FireHydrant input)
Copyright © 2011–2018. All rights reserved.