Package tech.ydb.yoj.databind
Enum Class DbType
- All Implemented Interfaces:
Serializable,Comparable<DbType>,Constable
Database column types supported by YDB.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBoolean value.Date value, accurate to the day.Timestamp value, accurate to second.Double value.Float value.Integer value.Long value.Interval value, accurate to microsecond.JSON value, stored as a UTF-8 encoded string.JSON value, stored in an indexed representation permitting efficient query operations of the values inside the JSON value itself.Binary data.Timestamp value, accurate to microsecond.Integer value stored in the db as Uint32.Long value stored in the db as Uint64.Byte value.UTF-8 encoded string. -
Method Summary
-
Enum Constant Details
-
DEFAULT
-
BOOL
Boolean value. -
UINT8
Byte value. -
INT32
Integer value. -
UINT32
Integer value stored in the db as Uint32. -
INT64
Long value. -
UINT64
Long value stored in the db as Uint64. -
FLOAT
Float value. -
DOUBLE
Double value. -
DATE
Date value, accurate to the day. -
DATETIME
Timestamp value, accurate to second. -
TIMESTAMP
Timestamp value, accurate to microsecond. -
INTERVAL
Interval value, accurate to microsecond. -
STRING
Binary data. -
UTF8
UTF-8 encoded string. -
JSON
JSON value, stored as a UTF-8 encoded string. -
JSON_DOCUMENT
JSON value, stored in an indexed representation permitting efficient query operations of the values inside the JSON value itself.
-
-
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
-
typeString
-