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
public abstract class AggResetContextImpl extends NestedBlockBuilderImpl implements AggResetContext
Implementation ofAggResetContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Expression>
accumulator
-
Constructor Summary
Constructors Constructor Description AggResetContextImpl(BlockBuilder block, java.util.List<Expression> accumulator)
Creates aggregate reset context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Expression>
accumulator()
Returns accumulator variables that should be reset.AggregateCall
call()
-
Methods inherited from class org.apache.calcite.adapter.enumerable.NestedBlockBuilderImpl
currentBlock, currentNullables, exitBlock, nestBlock, 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, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
-
-
-
-
Field Detail
-
accumulator
private final java.util.List<Expression> accumulator
-
-
Constructor Detail
-
AggResetContextImpl
public AggResetContextImpl(BlockBuilder block, java.util.List<Expression> accumulator)
Creates aggregate reset context.- Parameters:
block
- Code block that will contain the added initializationaccumulator
- Accumulator variables that store the intermediate aggregate state
-
-
Method Detail
-
accumulator
public java.util.List<Expression> 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:
AggImplementor.getStateType(org.apache.calcite.adapter.enumerable.AggContext)
-
call
public AggregateCall call()
-
-