public class BySegmentQueryRunner<T> extends Object implements QueryRunner<T>
BySegmentResultValueClass object if the "bySegment" query context parameter is set. Otherwise, it
delegates to the base runner without any behavior modification.
Note that despite the type parameter "T", this runner may not actually return sequences with type T. They
may really be of type Result<BySegmentResultValue<T>>, if "bySegment" is set. Downstream consumers
of the returned sequence must be aware of this, and can use QueryContexts.isBySegment(Query) to
know what to expect.| Constructor and Description |
|---|
BySegmentQueryRunner(SegmentId segmentId,
org.joda.time.DateTime timestamp,
QueryRunner<T> base) |
| Modifier and Type | Method and Description |
|---|---|
Sequence<T> |
run(QueryPlus<T> queryPlus,
ResponseContext responseContext)
Runs the given query and returns results in a time-ordered sequence.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunpublic BySegmentQueryRunner(SegmentId segmentId, org.joda.time.DateTime timestamp, QueryRunner<T> base)
public Sequence<T> run(QueryPlus<T> queryPlus, ResponseContext responseContext)
QueryRunnerrun in interface QueryRunner<T>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.