Class FinalizeResultsQueryRunner<T>

  • All Implemented Interfaces:
    QueryRunner<T>

    public class FinalizeResultsQueryRunner<T>
    extends Object
    implements QueryRunner<T>
    Query runner that applies 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).