Package org.apache.druid.query
Class BySegmentQueryRunner<T>
java.lang.Object
org.apache.druid.query.BySegmentQueryRunner<T>
- All Implemented Interfaces:
QueryRunner<T>
Query runner that wraps a base single-segment query runner, and wraps its results in a
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 QueryContext.isBySegment() to
know what to expect.-
Constructor Summary
ConstructorsConstructorDescriptionBySegmentQueryRunner(SegmentId segmentId, org.joda.time.DateTime timestamp, QueryRunner<T> base) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.QueryRunner
run
-
Constructor Details
-
BySegmentQueryRunner
public BySegmentQueryRunner(SegmentId segmentId, org.joda.time.DateTime timestamp, QueryRunner<T> base)
-
-
Method Details
-
run
Description copied from interface:QueryRunnerRuns the given query and returns results in a time-ordered sequence.- Specified by:
runin interfaceQueryRunner<T>
-