Enum Class ColumnType

java.lang.Object
java.lang.Enum<ColumnType>
org.apache.ignite.sql.ColumnType
All Implemented Interfaces:
Serializable, Comparable<ColumnType>, Constable

public enum ColumnType extends Enum<ColumnType>
Predefined column types.
  • Enum Constant Details

    • NULL

      public static final ColumnType NULL
      Null.
    • BOOLEAN

      public static final ColumnType BOOLEAN
      Boolean. SQL type: BOOLEAN.
    • INT8

      public static final ColumnType INT8
      8-bit signed integer. SQL type: TINYINT.
    • INT16

      public static final ColumnType INT16
      16-bit signed integer. SQL type: SMALLINT.
    • INT32

      public static final ColumnType INT32
      32-bit signed integer. SQL type: INT.
    • INT64

      public static final ColumnType INT64
      64-bit signed integer. SQL type: BIGINT.
    • FLOAT

      public static final ColumnType FLOAT
      32-bit single-precision floating-point number. SQL type: REAL.
    • DOUBLE

      public static final ColumnType DOUBLE
      64-bit double-precision floating-point number. SQL type: DOUBLE.

      SQL`16 part 2 section 6.1 syntax rule 31, implementation-defined precision

    • DECIMAL

      public static final ColumnType DECIMAL
      Arbitrary-precision signed decimal number. SQL type: DECIMAL.
    • DATE

      public static final ColumnType DATE
      Timezone-free date. SQL type: DATE.
    • TIME

      public static final ColumnType TIME
      Timezone-free time with precision. SQL type: TIME.
    • DATETIME

      public static final ColumnType DATETIME
      Timezone-free datetime. SQL type: TIMESTAMP.
    • TIMESTAMP

      public static final ColumnType TIMESTAMP
      Point on the time-line. Number of ticks since 1970-01-01T00:00:00Z. Tick unit depends on precision. SQL type: TIMESTAMP WITH LOCAL TIME ZONE.
    • UUID

      public static final ColumnType UUID
      128-bit UUID. SQL type: UUID.
    • STRING

      public static final ColumnType STRING
      String. SQL type: VARCHAR.
    • BYTE_ARRAY

      public static final ColumnType BYTE_ARRAY
      Binary data. SQL type: VARBINARY.
    • PERIOD

      public static final ColumnType PERIOD
      Date interval. SQL type: none.
    • DURATION

      public static final ColumnType DURATION
      Time interval. SQL type: none.
  • Method Details

    • values

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

      public static ColumnType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • javaClass

      public Class<?> javaClass()
      Appropriate java match type.
    • precisionAllowed

      public boolean precisionAllowed()
      If true precision need to be specified, false otherwise.
    • scaleAllowed

      public boolean scaleAllowed()
      If true scale need to be specified, false otherwise.
    • lengthAllowed

      public boolean lengthAllowed()
      If true length need to be specified, false otherwise.
    • id

      public int id()
      Returns id of type.
    • getById

      @Nullable public static @Nullable ColumnType getById(int id)
      Returns the ColumnType instance by its id, or null if the id is invalid.