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 Detail

      • aggregation

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

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

        java.util.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

        java.util.List<? extends java.lang.reflect.Type> parameterTypes()
        Returns the parameter types of the aggregate as Type.
        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 as RelDataType.
      • keyTypes

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

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