Class SourceSorter<TAccumulate,TSource,TSortKey>
java.lang.Object
org.apache.calcite.adapter.enumerable.SourceSorter<TAccumulate,TSource,TSortKey>
- Type Parameters:
TAccumulate
- Type of the accumulatorTSource
- Type of the enumerable input sourceTSortKey
- Type of the sort key
- All Implemented Interfaces:
LazyAggregateLambdaFactory.LazyAccumulator<TAccumulate,
TSource>
public class SourceSorter<TAccumulate,TSource,TSortKey>
extends Object
implements LazyAggregateLambdaFactory.LazyAccumulator<TAccumulate,TSource>
Helper that combines the sorting process and accumulating process against the
aggregate execution, used with
LazyAggregateLambdaFactory
.-
Constructor Summary
ConstructorDescriptionSourceSorter
(Function2<TAccumulate, TSource, TAccumulate> accumulatorAdder, Function1<TSource, TSortKey> keySelector, Comparator<TSortKey> comparator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulate
(Iterable<TSource> sourceIterable, TAccumulate accumulator)
-
Constructor Details
-
SourceSorter
public SourceSorter(Function2<TAccumulate, TSource, TAccumulate> accumulatorAdder, Function1<TSource, TSortKey> keySelector, Comparator<TSortKey> comparator)
-
-
Method Details
-
accumulate
- Specified by:
accumulate
in interfaceLazyAggregateLambdaFactory.LazyAccumulator<TAccumulate,
TSource>
-