private class EnumerableAggregate.AggContextImpl extends Object implements AggContext
AggContext.| Modifier and Type | Field and Description |
|---|---|
private AggImpState |
agg |
private JavaTypeFactory |
typeFactory |
| Constructor and Description |
|---|
AggContextImpl(AggImpState agg,
JavaTypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
SqlAggFunction |
aggregation()
Returns the aggregation being implemented.
|
List<ImmutableBitSet> |
groupSets()
Returns the grouping sets we are aggregating on.
|
List<Integer> |
keyOrdinals()
Returns the ordinals of the input fields that make up the key.
|
List<? extends RelDataType> |
keyRelTypes()
Returns the types of the group key as
RelDataType. |
List<? extends Type> |
keyTypes()
Returns the types of the group key as
Type. |
List<? extends RelDataType> |
parameterRelTypes()
Returns the parameter types of the aggregate as
RelDataType. |
List<? extends Type> |
parameterTypes()
Returns the parameter types of the aggregate as
Type. |
RelDataType |
returnRelType()
Returns the return type of the aggregate as
RelDataType. |
Type |
returnType()
Returns the return type of the aggregate as
Type. |
private final AggImpState agg
private final JavaTypeFactory typeFactory
AggContextImpl(AggImpState agg, JavaTypeFactory typeFactory)
public SqlAggFunction aggregation()
AggContextaggregation in interface AggContextpublic RelDataType returnRelType()
AggContextRelDataType.
This can be helpful to test
RelDataType.isNullable().returnRelType in interface AggContextpublic Type returnType()
AggContextType.returnType in interface AggContextTypepublic List<? extends RelDataType> parameterRelTypes()
AggContextRelDataType.
This can be helpful to test
RelDataType.isNullable().parameterRelTypes in interface AggContextpublic List<? extends Type> parameterTypes()
AggContextType.parameterTypes in interface AggContextpublic List<ImmutableBitSet> groupSets()
AggContextgroupSets in interface AggContextpublic List<Integer> keyOrdinals()
AggContextkeyOrdinals in interface AggContextpublic List<? extends RelDataType> keyRelTypes()
AggContextRelDataType.keyRelTypes in interface AggContextpublic List<? extends Type> keyTypes()
AggContextType.keyTypes in interface AggContextCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.