Enum Converters.FieldConverter

java.lang.Object
java.lang.Enum<Converters.FieldConverter>
net.hydromatic.morel.foreign.Converters.FieldConverter
All Implemented Interfaces:
Serializable, Comparable<Converters.FieldConverter>, java.lang.constant.Constable
Enclosing class:
Converters

static enum Converters.FieldConverter extends Enum<Converters.FieldConverter>
Converts a field from Calcite to Morel format.
  • Enum Constant Details

  • Field Details

    • mlType

      final Type mlType
  • Constructor Details

    • FieldConverter

      private FieldConverter(Type mlType)
  • Method Details

    • values

      public static Converters.FieldConverter[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Converters.FieldConverter valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • convertFrom

      public abstract Object convertFrom(Object sourceValue)
      Given a Calcite row, returns the value of this field in SML format.
    • toType

      static Converters.FieldConverter toType(org.apache.calcite.rel.type.RelDataType type)