public class FinalizeResultsQueryRunner<T> extends Object implements QueryRunner<T>
QueryToolChest.makePostComputeManipulatorFn(Query, MetricManipulationFn) to the
result stream. It is expected to be the last runner in the pipeline, after results are fully merged.
Note that despite the type parameter "T", this runner may not actually return sequences with type T. This most
commonly happens when an upstream BySegmentQueryRunner changes the result stream to type
Result<BySegmentResultValue<T>>, in which case this class will retain the structure, but call the finalizer
function on each result in the by-segment list (which may change their type from T to something else).| Constructor and Description |
|---|
FinalizeResultsQueryRunner(QueryRunner<T> baseRunner,
QueryToolChest<T,Query<T>> toolChest) |
| 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 FinalizeResultsQueryRunner(QueryRunner<T> baseRunner, QueryToolChest<T,Query<T>> toolChest)
public Sequence<T> run(QueryPlus<T> queryPlus, ResponseContext responseContext)
QueryRunnerrun in interface QueryRunner<T>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.