Package org.apache.calcite.interpreter
Class AggregateNode.UdaAccumulatorFactory
- java.lang.Object
-
- org.apache.calcite.interpreter.AggregateNode.UdaAccumulatorFactory
-
- All Implemented Interfaces:
java.util.function.Supplier<AggregateNode.Accumulator>
,AggregateNode.AccumulatorFactory
- Enclosing class:
- AggregateNode
private static class AggregateNode.UdaAccumulatorFactory extends java.lang.Object implements AggregateNode.AccumulatorFactory
Accumulator factory based on a user-defined aggregate function.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AggregateFunctionImpl
aggFunction
(package private) int
argOrdinal
java.lang.Object
instance
boolean
nullIfEmpty
-
Constructor Summary
Constructors Constructor Description UdaAccumulatorFactory(AggregateFunctionImpl aggFunction, AggregateCall call, boolean nullIfEmpty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateNode.Accumulator
get()
-
-
-
Field Detail
-
aggFunction
final AggregateFunctionImpl aggFunction
-
argOrdinal
final int argOrdinal
-
instance
public final java.lang.Object instance
-
nullIfEmpty
public final boolean nullIfEmpty
-
-
Constructor Detail
-
UdaAccumulatorFactory
UdaAccumulatorFactory(AggregateFunctionImpl aggFunction, AggregateCall call, boolean nullIfEmpty)
-
-
Method Detail
-
get
public AggregateNode.Accumulator get()
- Specified by:
get
in interfacejava.util.function.Supplier<AggregateNode.Accumulator>
-
-