Interface AggContext
- All Known Subinterfaces:
WinAggContext
- All Known Implementing Classes:
EnumerableAggregateBase.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
Modifier and TypeMethodDescriptionReturns the aggregation being implemented.Returns the grouping sets we are aggregating on.Returns the ordinals of the input fields that make up the key.List<? extends RelDataType>Returns the types of the group key asRelDataType.keyTypes()Returns the types of the group key asType.List<? extends RelDataType>Returns the parameter types of the aggregate asRelDataType.Returns the parameter types of the aggregate asType.Returns the return type of the aggregate asRelDataType.Returns the return type of the aggregate asType.
-
Method Details
-
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
Type returnType()Returns the return type of the aggregate asType.- Returns:
- return type of the aggregate as
Type
-
parameterRelTypes
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
Returns the parameter types of the aggregate asType.- Returns:
- Parameter types of the aggregate
-
keyOrdinals
Returns the ordinals of the input fields that make up the key. -
keyRelTypes
List<? extends RelDataType> keyRelTypes()Returns the types of the group key asRelDataType. -
keyTypes
Returns the types of the group key asType. -
groupSets
List<ImmutableBitSet> groupSets()Returns the grouping sets we are aggregating on.
-