Package org.apache.calcite.interpreter
Class AggregateNode.CountAccumulator
- java.lang.Object
-
- org.apache.calcite.interpreter.AggregateNode.CountAccumulator
-
- All Implemented Interfaces:
AggregateNode.Accumulator
- Enclosing class:
- AggregateNode
private static class AggregateNode.CountAccumulator extends java.lang.Object implements AggregateNode.Accumulator
Accumulator for calls to the COUNT function.
-
-
Field Summary
Fields Modifier and Type Field Description private AggregateCall
call
(package private) long
cnt
-
Constructor Summary
Constructors Constructor Description CountAccumulator(AggregateCall call)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
end()
void
send(Row row)
-
-
-
Field Detail
-
call
private final AggregateCall call
-
cnt
long cnt
-
-
Constructor Detail
-
CountAccumulator
CountAccumulator(AggregateCall call)
-
-
Method Detail
-
send
public void send(Row row)
- Specified by:
send
in interfaceAggregateNode.Accumulator
-
end
public java.lang.Object end()
- Specified by:
end
in interfaceAggregateNode.Accumulator
-
-