Class AggResetContextImpl
java.lang.Object
org.apache.calcite.adapter.enumerable.NestedBlockBuilderImpl
org.apache.calcite.adapter.enumerable.impl.AggResetContextImpl
- All Implemented Interfaces:
AggResetContext
,NestedBlockBuilder
- Direct Known Subclasses:
AggResultContextImpl
,WinAggResetContextImpl
Implementation of
AggResetContext
.-
Constructor Summary
ModifierConstructorDescriptionprotected
AggResetContextImpl
(BlockBuilder block, List<Expression> accumulator) Creates aggregate reset context. -
Method Summary
Methods inherited from class org.apache.calcite.adapter.enumerable.NestedBlockBuilderImpl
currentBlock, exitBlock, nestBlock, nestBlock
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.adapter.enumerable.NestedBlockBuilder
currentBlock, exitBlock, nestBlock, nestBlock
-
Constructor Details
-
AggResetContextImpl
Creates aggregate reset context.- Parameters:
block
- Code block that will contain the added initializationaccumulator
- Accumulator variables that store the intermediate aggregate state
-
-
Method Details
-
accumulator
Description copied from interface:AggResetContext
Returns accumulator variables that should be reset. There MUST be an assignment even if you just assign the default value.- Specified by:
accumulator
in interfaceAggResetContext
- Returns:
- accumulator variables that should be reset or empty list when no accumulator variables are used by the aggregate implementation.
- See Also:
-
call
-