Interface AggContext
-
- All Known Subinterfaces:
WinAggContext
- All Known Implementing Classes:
EnumerableAggregate.AggContextImpl
public interface AggContext
Information on the aggregate calculation context.AggAddContext
provides basic static information on types of arguments and the return value of the aggregate being implemented.
-
-
Method Summary
All Methods Instance Methods Abstract 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
.
-
-
-
Method Detail
-
aggregation
SqlAggFunction aggregation()
Returns the aggregation being implemented.- Returns:
- aggregation being implemented.
-
returnRelType
RelDataType returnRelType()
Returns the return type of the aggregate asRelDataType
. This can be helpful to testRelDataType.isNullable()
.- Returns:
- return type of the aggregate
-
returnType
java.lang.reflect.Type returnType()
Returns the return type of the aggregate asType
.- Returns:
- return type of the aggregate as
Type
-
parameterRelTypes
java.util.List<? extends RelDataType> parameterRelTypes()
Returns the parameter types of the aggregate asRelDataType
. This can be helpful to testRelDataType.isNullable()
.- Returns:
- Parameter types of the aggregate
-
parameterTypes
java.util.List<? extends java.lang.reflect.Type> parameterTypes()
Returns the parameter types of the aggregate asType
.- Returns:
- Parameter types of the aggregate
-
keyOrdinals
java.util.List<java.lang.Integer> keyOrdinals()
Returns the ordinals of the input fields that make up the key.
-
keyRelTypes
java.util.List<? extends RelDataType> keyRelTypes()
Returns the types of the group key asRelDataType
.
-
keyTypes
java.util.List<? extends java.lang.reflect.Type> keyTypes()
Returns the types of the group key asType
.
-
groupSets
java.util.List<ImmutableBitSet> groupSets()
Returns the grouping sets we are aggregating on.
-
-