Class EnumUtils


  • public class EnumUtils
    extends java.lang.Object
    Utilities for generating programs in the Enumerable (functional) style.
    • Field Detail

      • NO_EXPRS

        static final java.util.List<Expression> NO_EXPRS
      • LEFT_RIGHT

        public static final java.util.List<java.lang.String> LEFT_RIGHT
    • Constructor Detail

      • EnumUtils

        private EnumUtils()
    • Method Detail

      • fieldTypes

        static java.util.List<java.lang.reflect.Type> fieldTypes​(JavaTypeFactory typeFactory,
                                                                 java.util.List<? extends RelDataType> inputTypes)
      • fieldRowTypes

        static java.util.List<RelDataType> fieldRowTypes​(RelDataType inputRowType,
                                                         java.util.List<? extends RexNode> extraInputs,
                                                         java.util.List<java.lang.Integer> argList)
      • fromInternal

        static Expression fromInternal​(Expression e,
                                       java.lang.Class<?> targetType)
        Converts from internal representation to JDBC representation used by arguments of user-defined functions. For example, converts date values from int to Date.
      • fromInternal

        static java.util.List<Expression> fromInternal​(java.lang.Class<?>[] targetTypes,
                                                       java.util.List<Expression> expressions)
      • fromInternal

        static java.lang.reflect.Type fromInternal​(java.lang.reflect.Type type)
      • toInternal

        static java.lang.reflect.Type toInternal​(RelDataType type)
      • internalTypes

        static java.util.List<java.lang.reflect.Type> internalTypes​(java.util.List<? extends RexNode> operandList)
      • toLinq4jJoinType

        static JoinType toLinq4jJoinType​(JoinRelType joinRelType)
        Transforms a JoinRelType to Linq4j JoinType.