public class AggResultContextImpl extends AggResetContextImpl implements AggResultContext
AggResultContext.| Constructor and Description |
|---|
AggResultContextImpl(org.apache.calcite.linq4j.tree.BlockBuilder block,
@Nullable AggregateCall call,
List<org.apache.calcite.linq4j.tree.Expression> accumulator,
@Nullable org.apache.calcite.linq4j.tree.ParameterExpression key,
@Nullable PhysType keyPhysType)
Creates aggregate result context.
|
| Modifier and Type | Method and Description |
|---|---|
AggregateCall |
call() |
@Nullable org.apache.calcite.linq4j.tree.Expression |
key()
Expression by which to reference the key upon which the values in the
accumulator were aggregated.
|
org.apache.calcite.linq4j.tree.Expression |
keyField(int i)
Returns an expression that references the
ith field of the key,
cast to the appropriate type. |
accumulatorcurrentBlock, exitBlock, nestBlock, nestBlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccumulatorcurrentBlock, exitBlock, nestBlock, nestBlockpublic AggResultContextImpl(org.apache.calcite.linq4j.tree.BlockBuilder block,
@Nullable AggregateCall call,
List<org.apache.calcite.linq4j.tree.Expression> accumulator,
@Nullable org.apache.calcite.linq4j.tree.ParameterExpression key,
@Nullable PhysType keyPhysType)
block - Code block that will contain the result calculation statementscall - Aggregate callaccumulator - Accumulator variables that store the intermediate
aggregate statekey - Keypublic @Nullable org.apache.calcite.linq4j.tree.Expression key()
AggResultContextkey in interface AggResultContextpublic org.apache.calcite.linq4j.tree.Expression keyField(int i)
AggResultContextith field of the key,
cast to the appropriate type.keyField in interface AggResultContextpublic AggregateCall call()
call in interface AggResultContextcall in class AggResetContextImplCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.