Package org.apache.ignite.sql
Enum Class ColumnType
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>,Constable
Predefined column types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean.Binary data.Timezone-free date.Timezone-free datetime.Arbitrary-precision signed decimal number.64-bit double-precision floating-point number.Time interval.32-bit single-precision floating-point number.16-bit signed integer.32-bit signed integer.64-bit signed integer.8-bit signed integer.Null.Date interval.String.Timezone-free time with precision.Point on the time-line.128-bit UUID. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ColumnTypegetById(int id) Returns theColumnTypeinstance by its id, ornullif the id is invalid.intid()Returns id of type.Class<?>Appropriate java match type.booleanIftruelength need to be specified,falseotherwise.booleanIftrueprecision need to be specified,falseotherwise.booleanIftruescale need to be specified,falseotherwise.static ColumnTypeReturns the enum constant of this class with the specified name.static ColumnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
Null. -
BOOLEAN
Boolean. SQL type:BOOLEAN. -
INT8
8-bit signed integer. SQL type:TINYINT. -
INT16
16-bit signed integer. SQL type:SMALLINT. -
INT32
32-bit signed integer. SQL type:INT. -
INT64
64-bit signed integer. SQL type:BIGINT. -
FLOAT
32-bit single-precision floating-point number. SQL type:REAL. -
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
Arbitrary-precision signed decimal number. SQL type:DECIMAL. -
DATE
Timezone-free date. SQL type:DATE. -
TIME
Timezone-free time with precision. SQL type:TIME. -
DATETIME
Timezone-free datetime. SQL type:TIMESTAMP. -
TIMESTAMP
Point on the time-line. Number of ticks since1970-01-01T00:00:00Z. Tick unit depends on precision. SQL type:TIMESTAMP WITH LOCAL TIME ZONE. -
UUID
128-bit UUID. SQL type:UUID. -
STRING
String. SQL type:VARCHAR. -
BYTE_ARRAY
Binary data. SQL type:VARBINARY. -
PERIOD
Date interval. SQL type: none. -
DURATION
Time interval. SQL type: none.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
javaClass
Appropriate java match type. -
precisionAllowed
public boolean precisionAllowed()Iftrueprecision need to be specified,falseotherwise. -
scaleAllowed
public boolean scaleAllowed()Iftruescale need to be specified,falseotherwise. -
lengthAllowed
public boolean lengthAllowed()Iftruelength need to be specified,falseotherwise. -
id
public int id()Returns id of type. -
getById
Returns theColumnTypeinstance by its id, ornullif the id is invalid.
-