public class AggResultContextImpl extends AggResetContextImpl implements AggResultContext
AggResultContext
Modifier and Type | Field and Description |
---|---|
private AggregateCall |
call |
private ParameterExpression |
key |
private PhysType |
keyPhysType |
Constructor and Description |
---|
AggResultContextImpl(BlockBuilder block,
AggregateCall call,
java.util.List<Expression> accumulator,
ParameterExpression key,
PhysType keyPhysType)
Creates aggregate result context.
|
Modifier and Type | Method and Description |
---|---|
AggregateCall |
call() |
Expression |
key()
Expression by which to reference the key upon which the values in the
accumulator were aggregated.
|
Expression |
keyField(int i)
Returns an expression that references the
i th field of the key,
cast to the appropriate type. |
accumulator
currentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accumulator
currentBlock, currentNullables, exitBlock, nestBlock, nestBlock, nestBlock
private final AggregateCall call
private final ParameterExpression key
private final PhysType keyPhysType
public AggResultContextImpl(BlockBuilder block, AggregateCall call, java.util.List<Expression> accumulator, ParameterExpression key, PhysType keyPhysType)
block
- Code block that will contain the result calculation statementscall
- Aggregate callaccumulator
- Accumulator variables that store the intermediate
aggregate statekey
- Keypublic Expression key()
AggResultContext
key
in interface AggResultContext
public Expression keyField(int i)
AggResultContext
i
th field of the key,
cast to the appropriate type.keyField
in interface AggResultContext
public AggregateCall call()
call
in interface AggResultContext
call
in class AggResetContextImpl
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.