Class PlannerTest.MyCountAggFunction

  • All Implemented Interfaces:
    org.apache.calcite.plan.Context, org.apache.calcite.schema.Wrapper
    Enclosing class:
    PlannerTest

    public static class PlannerTest.MyCountAggFunction
    extends org.apache.calcite.sql.SqlAggFunction
    User-defined aggregate function.
    • Field Summary

      • Fields inherited from class org.apache.calcite.sql.SqlOperator

        kind, MDX_PRECEDENCE, NL
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.rel.type.RelDataType deriveType​(org.apache.calcite.sql.validate.SqlValidator validator, org.apache.calcite.sql.validate.SqlValidatorScope scope, org.apache.calcite.sql.SqlCall call)  
      java.util.List<org.apache.calcite.rel.type.RelDataType> getParameterTypes​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)  
      org.apache.calcite.rel.type.RelDataType getReturnType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)  
      • Methods inherited from class org.apache.calcite.sql.SqlAggFunction

        allowsFilter, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
      • Methods inherited from class org.apache.calcite.sql.SqlFunction

        getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, unparse, validateQuantifier
      • Methods inherited from class org.apache.calcite.sql.SqlOperator

        acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MyCountAggFunction

        public MyCountAggFunction()
    • Method Detail

      • getParameterTypes

        public java.util.List<org.apache.calcite.rel.type.RelDataType> getParameterTypes​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
        Overrides:
        getParameterTypes in class org.apache.calcite.sql.SqlAggFunction
      • getReturnType

        public org.apache.calcite.rel.type.RelDataType getReturnType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
        Overrides:
        getReturnType in class org.apache.calcite.sql.SqlAggFunction
      • deriveType

        public org.apache.calcite.rel.type.RelDataType deriveType​(org.apache.calcite.sql.validate.SqlValidator validator,
                                                                  org.apache.calcite.sql.validate.SqlValidatorScope scope,
                                                                  org.apache.calcite.sql.SqlCall call)
        Overrides:
        deriveType in class org.apache.calcite.sql.SqlFunction