Class EnumerableAggregate.AggContextImpl
- java.lang.Object
-
- org.apache.calcite.adapter.enumerable.EnumerableAggregate.AggContextImpl
-
- All Implemented Interfaces:
AggContext
- Enclosing class:
- EnumerableAggregate
private class EnumerableAggregate.AggContextImpl extends java.lang.Object implements AggContext
An implementation ofAggContext
.
-
-
Field Summary
Fields Modifier and Type Field Description private AggImpState
agg
private JavaTypeFactory
typeFactory
-
Constructor Summary
Constructors Constructor Description AggContextImpl(AggImpState agg, JavaTypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlAggFunction
aggregation()
Returns the aggregation being implemented.java.util.List<ImmutableBitSet>
groupSets()
Returns the grouping sets we are aggregating on.java.util.List<java.lang.Integer>
keyOrdinals()
Returns the ordinals of the input fields that make up the key.java.util.List<? extends RelDataType>
keyRelTypes()
Returns the types of the group key asRelDataType
.java.util.List<? extends java.lang.reflect.Type>
keyTypes()
Returns the types of the group key asType
.java.util.List<? extends RelDataType>
parameterRelTypes()
Returns the parameter types of the aggregate asRelDataType
.java.util.List<? extends java.lang.reflect.Type>
parameterTypes()
Returns the parameter types of the aggregate asType
.RelDataType
returnRelType()
Returns the return type of the aggregate asRelDataType
.java.lang.reflect.Type
returnType()
Returns the return type of the aggregate asType
.
-
-
-
Field Detail
-
agg
private final AggImpState agg
-
typeFactory
private final JavaTypeFactory typeFactory
-
-
Constructor Detail
-
AggContextImpl
AggContextImpl(AggImpState agg, JavaTypeFactory typeFactory)
-
-
Method Detail
-
aggregation
public SqlAggFunction aggregation()
Description copied from interface:AggContext
Returns the aggregation being implemented.- Specified by:
aggregation
in interfaceAggContext
- Returns:
- aggregation being implemented.
-
returnRelType
public RelDataType returnRelType()
Description copied from interface:AggContext
Returns the return type of the aggregate asRelDataType
. This can be helpful to testRelDataType.isNullable()
.- Specified by:
returnRelType
in interfaceAggContext
- Returns:
- return type of the aggregate
-
returnType
public java.lang.reflect.Type returnType()
Description copied from interface:AggContext
Returns the return type of the aggregate asType
.- Specified by:
returnType
in interfaceAggContext
- Returns:
- return type of the aggregate as
Type
-
parameterRelTypes
public java.util.List<? extends RelDataType> parameterRelTypes()
Description copied from interface:AggContext
Returns the parameter types of the aggregate asRelDataType
. This can be helpful to testRelDataType.isNullable()
.- Specified by:
parameterRelTypes
in interfaceAggContext
- Returns:
- Parameter types of the aggregate
-
parameterTypes
public java.util.List<? extends java.lang.reflect.Type> parameterTypes()
Description copied from interface:AggContext
Returns the parameter types of the aggregate asType
.- Specified by:
parameterTypes
in interfaceAggContext
- Returns:
- Parameter types of the aggregate
-
groupSets
public java.util.List<ImmutableBitSet> groupSets()
Description copied from interface:AggContext
Returns the grouping sets we are aggregating on.- Specified by:
groupSets
in interfaceAggContext
-
keyOrdinals
public java.util.List<java.lang.Integer> keyOrdinals()
Description copied from interface:AggContext
Returns the ordinals of the input fields that make up the key.- Specified by:
keyOrdinals
in interfaceAggContext
-
keyRelTypes
public java.util.List<? extends RelDataType> keyRelTypes()
Description copied from interface:AggContext
Returns the types of the group key asRelDataType
.- Specified by:
keyRelTypes
in interfaceAggContext
-
keyTypes
public java.util.List<? extends java.lang.reflect.Type> keyTypes()
Description copied from interface:AggContext
Returns the types of the group key asType
.- Specified by:
keyTypes
in interfaceAggContext
-
-