Class BySegmentQueryRunner<T>

  • All Implemented Interfaces:
    QueryRunner<T>

    public class BySegmentQueryRunner<T>
    extends Object
    implements 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.