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 Details

    • aggregation

      SqlAggFunction aggregation()
      Returns the aggregation being implemented.
      Returns:
      aggregation being implemented.
    • returnRelType

      RelDataType returnRelType()
      Returns the return type of the aggregate as RelDataType. This can be helpful to test RelDataType.isNullable().
      Returns:
      return type of the aggregate
    • returnType

      Type returnType()
      Returns the return type of the aggregate as Type.
      Returns:
      return type of the aggregate as Type
    • parameterRelTypes

      List<? extends RelDataType> parameterRelTypes()
      Returns the parameter types of the aggregate as RelDataType. This can be helpful to test RelDataType.isNullable().
      Returns:
      Parameter types of the aggregate
    • parameterTypes

      List<? extends Type> parameterTypes()
      Returns the parameter types of the aggregate as Type.
      Returns:
      Parameter types of the aggregate
    • keyOrdinals

      List<Integer> 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 as RelDataType.
    • keyTypes

      List<? extends Type> keyTypes()
      Returns the types of the group key as Type.
    • groupSets

      List<ImmutableBitSet> groupSets()
      Returns the grouping sets we are aggregating on.