TSource - Type of the enumerable input sourceTAccumulate - Type of the accumulatorTResult - Type of the enumerable output resultTKey - Type of the group-by keypublic class BasicAggregateLambdaFactory<TSource,TAccumulate,TResult,TKey> extends Object implements AggregateLambdaFactory<TSource,TAccumulate,TAccumulate,TResult,TKey>
AggregateLambdaFactory that applies a sequence of
accumulator adders to input source.| Constructor and Description |
|---|
BasicAggregateLambdaFactory(org.apache.calcite.linq4j.function.Function0<TAccumulate> accumulatorInitializer,
List<org.apache.calcite.linq4j.function.Function2<TAccumulate,TSource,TAccumulate>> accumulatorAdders) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.linq4j.function.Function2<TAccumulate,TSource,TAccumulate> |
accumulatorAdder() |
org.apache.calcite.linq4j.function.Function0<TAccumulate> |
accumulatorInitializer() |
org.apache.calcite.linq4j.function.Function2<TKey,TAccumulate,TResult> |
resultSelector(org.apache.calcite.linq4j.function.Function2<TKey,TAccumulate,TResult> resultSelector) |
org.apache.calcite.linq4j.function.Function1<TAccumulate,TResult> |
singleGroupResultSelector(org.apache.calcite.linq4j.function.Function1<TAccumulate,TResult> resultSelector) |
public BasicAggregateLambdaFactory(org.apache.calcite.linq4j.function.Function0<TAccumulate> accumulatorInitializer, List<org.apache.calcite.linq4j.function.Function2<TAccumulate,TSource,TAccumulate>> accumulatorAdders)
public org.apache.calcite.linq4j.function.Function0<TAccumulate> accumulatorInitializer()
accumulatorInitializer in interface AggregateLambdaFactory<TSource,TAccumulate,TAccumulate,TResult,TKey>public org.apache.calcite.linq4j.function.Function2<TAccumulate,TSource,TAccumulate> accumulatorAdder()
accumulatorAdder in interface AggregateLambdaFactory<TSource,TAccumulate,TAccumulate,TResult,TKey>public org.apache.calcite.linq4j.function.Function1<TAccumulate,TResult> singleGroupResultSelector(org.apache.calcite.linq4j.function.Function1<TAccumulate,TResult> resultSelector)
singleGroupResultSelector in interface AggregateLambdaFactory<TSource,TAccumulate,TAccumulate,TResult,TKey>public org.apache.calcite.linq4j.function.Function2<TKey,TAccumulate,TResult> resultSelector(org.apache.calcite.linq4j.function.Function2<TKey,TAccumulate,TResult> resultSelector)
resultSelector in interface AggregateLambdaFactory<TSource,TAccumulate,TAccumulate,TResult,TKey>Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.