public enum PrimitiveType extends Enum<PrimitiveType> implements Type
| Enum Constant and Description |
|---|
Bool
Boolean value.
|
Bytes
A binary data, synonym for YDB type String
|
Date
Date, precision to the day
|
Datetime
Date/time, precision to the second
|
Double
A real number with variable precision, 8 bytes in size.
|
DyNumber
A binary representation of a real number with an accuracy of up to 38 digits.
|
Float
A real number with variable precision, 4 bytes in size.
|
Int16
A signed integer.
|
Int32
A signed integer.
|
Int64
A signed integer.
|
Int8
A signed integer.
|
Interval
Time interval (signed), precision to microseconds
|
Json
JSON represented as text.
|
JsonDocument
JSON in an indexed binary representation.
|
Text
Text encoded in UTF-8, synonym for YDB type Utf8
|
Timestamp
Date/time, precision to the microsecond
|
TzDate
Date with time zone label, precision to the day
|
TzDatetime
Date/time with time zone label, precision to the second
|
TzTimestamp
Date/time with time zone label, precision to the microsecond
|
Uint16
An unsigned integer.
|
Uint32
An unsigned integer.
|
Uint64
An unsigned integer.
|
Uint8
An unsigned integer.
|
Uuid
Universally unique identifier UUID.
|
Yson
YSON in a textual or binary representation.
|
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
Type.Kind |
getKind() |
tech.ydb.proto.ValueProtos.Type |
toPb() |
static PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfequals, hashCode, makeOptional, toString, unwrapOptionalpublic static final PrimitiveType Bool
public static final PrimitiveType Int8
public static final PrimitiveType Uint8
public static final PrimitiveType Int16
public static final PrimitiveType Uint16
public static final PrimitiveType Int32
public static final PrimitiveType Uint32
public static final PrimitiveType Int64
public static final PrimitiveType Uint64
public static final PrimitiveType Float
public static final PrimitiveType Double
public static final PrimitiveType Bytes
public static final PrimitiveType Text
public static final PrimitiveType Yson
public static final PrimitiveType Json
public static final PrimitiveType Uuid
public static final PrimitiveType Date
public static final PrimitiveType Datetime
public static final PrimitiveType Timestamp
public static final PrimitiveType Interval
public static final PrimitiveType TzDate
public static final PrimitiveType TzDatetime
public static final PrimitiveType TzTimestamp
public static final PrimitiveType JsonDocument
public static final PrimitiveType DyNumber
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023. All rights reserved.