Class ProtoValue
- java.lang.Object
-
- com.yandex.ydb.table.values.proto.ProtoValue
-
public class ProtoValue extends Object
- Author:
- Sergey Polovko TODO: check sizes of types and values
-
-
Constructor Summary
Constructors Constructor Description ProtoValue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.yandex.ydb.ValueProtos.Valuebool(boolean value)static com.yandex.ydb.ValueProtos.Valuebytes(com.google.protobuf.ByteString value)static com.yandex.ydb.ValueProtos.Valuedate(long daysSinceEpoch)static com.yandex.ydb.ValueProtos.Valuedate(Instant value)static com.yandex.ydb.ValueProtos.Valuedate(LocalDate value)static com.yandex.ydb.ValueProtos.Valuedatetime(long secondsSinceEpoch)static com.yandex.ydb.ValueProtos.Valuedatetime(Instant value)static com.yandex.ydb.ValueProtos.Valuedatetime(LocalDateTime value)static com.yandex.ydb.ValueProtos.Valuedecimal(long high, long low)static com.yandex.ydb.ValueProtos.Valuedict()static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.ValuePair... pairs)static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.Value key, com.yandex.ydb.ValueProtos.Value value)static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2)static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3)static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3, com.yandex.ydb.ValueProtos.Value key4, com.yandex.ydb.ValueProtos.Value value4)static com.yandex.ydb.ValueProtos.Valuedict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3, com.yandex.ydb.ValueProtos.Value key4, com.yandex.ydb.ValueProtos.Value value4, com.yandex.ydb.ValueProtos.Value key5, com.yandex.ydb.ValueProtos.Value value5)static com.yandex.ydb.ValueProtos.Valuefloat32(float value)static com.yandex.ydb.ValueProtos.Valuefloat64(double value)static ValuefromPb(Type type, com.yandex.ydb.ValueProtos.Value value)static com.yandex.ydb.ValueProtos.Valueint16(short value)static com.yandex.ydb.ValueProtos.Valueint32(int value)static com.yandex.ydb.ValueProtos.Valueint64(long value)static com.yandex.ydb.ValueProtos.Valueint8(byte value)static com.yandex.ydb.ValueProtos.Valueinterval(long micros)static com.yandex.ydb.ValueProtos.Valueinterval(Duration value)static com.yandex.ydb.ValueProtos.Valuejson(String value)static com.yandex.ydb.ValueProtos.ValuejsonDocument(String value)static com.yandex.ydb.ValueProtos.Valuelist()static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value item)static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value... items)static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2)static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3)static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3, com.yandex.ydb.ValueProtos.Value item4)static com.yandex.ydb.ValueProtos.Valuelist(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3, com.yandex.ydb.ValueProtos.Value item4, com.yandex.ydb.ValueProtos.Value item5)static com.yandex.ydb.ValueProtos.Valuelist(Iterable<com.yandex.ydb.ValueProtos.Value> items)static com.yandex.ydb.ValueProtos.Valueoptional()static com.yandex.ydb.ValueProtos.Valueoptional(com.yandex.ydb.ValueProtos.Value value)static com.yandex.ydb.ValueProtos.Valuestring(byte[] value)static com.yandex.ydb.ValueProtos.Valuestring(String value, Charset charset)static com.yandex.ydb.ValueProtos.ValuestringOwn(byte[] value)will not copy given arraystatic com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value member)static com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2)static com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value firstMember, com.yandex.ydb.ValueProtos.Value... members)static com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3)static com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4)static com.yandex.ydb.ValueProtos.Valuestruct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4, com.yandex.ydb.ValueProtos.Value member5)static com.yandex.ydb.ValueProtos.Valuetext(String value)static com.yandex.ydb.ValueProtos.Valuetimestamp(long microsSinceEpoch)static com.yandex.ydb.ValueProtos.Valuetimestamp(Instant value)static booleantoBool(com.yandex.ydb.ValueProtos.Value value)static LocalDatetoDate(long daysSinceEpoch)static LocalDatetoDate(com.yandex.ydb.ValueProtos.Value value)static LocalDateTimetoDatetime(long secondsSinceEpoch)static LocalDateTimetoDatetime(com.yandex.ydb.ValueProtos.Value value)static DecimalValuetoDecimal(com.yandex.ydb.ValueProtos.Type type, com.yandex.ydb.ValueProtos.Value value)static floattoFloat32(com.yandex.ydb.ValueProtos.Value value)static doubletoFloat64(com.yandex.ydb.ValueProtos.Value value)static shorttoInt16(com.yandex.ydb.ValueProtos.Value value)static inttoInt32(com.yandex.ydb.ValueProtos.Value value)static longtoInt64(com.yandex.ydb.ValueProtos.Value value)static bytetoInt8(com.yandex.ydb.ValueProtos.Value value)static DurationtoInterval(com.yandex.ydb.ValueProtos.Value value)static StringtoJson(com.yandex.ydb.ValueProtos.Value value)static StringtoJsonDocument(com.yandex.ydb.ValueProtos.Value value)static byte[]toString(com.yandex.ydb.ValueProtos.Value value)static InstanttoTimestamp(long microsSinceEpoch)static InstanttoTimestamp(com.yandex.ydb.ValueProtos.Value value)static com.yandex.ydb.ValueProtos.TypedValuetoTypedValue(Value p)static ZonedDateTimetoTzDate(com.yandex.ydb.ValueProtos.Value value)static ZonedDateTimetoTzDate(String textValue)static ZonedDateTimetoTzDatetime(com.yandex.ydb.ValueProtos.Value value)static ZonedDateTimetoTzDatetime(String textValue)static ZonedDateTimetoTzTimestamp(com.yandex.ydb.ValueProtos.Value value)static ZonedDateTimetoTzTimestamp(String value)static inttoUint16(com.yandex.ydb.ValueProtos.Value value)static longtoUint32(com.yandex.ydb.ValueProtos.Value value)static longtoUint64(com.yandex.ydb.ValueProtos.Value value)static inttoUint8(com.yandex.ydb.ValueProtos.Value value)static StringtoUtf8(com.yandex.ydb.ValueProtos.Value value)static UUIDtoUuid(com.yandex.ydb.ValueProtos.Value value)static byte[]toYson(com.yandex.ydb.ValueProtos.Value value)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value member)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value... items)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4)static com.yandex.ydb.ValueProtos.Valuetuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4, com.yandex.ydb.ValueProtos.Value member5)static com.yandex.ydb.ValueProtos.ValuetzDate(String text)static com.yandex.ydb.ValueProtos.ValuetzDatetime(String text)static com.yandex.ydb.ValueProtos.Valueuint16(short value)static com.yandex.ydb.ValueProtos.Valueuint32(int value)static com.yandex.ydb.ValueProtos.Valueuint32(long value)static com.yandex.ydb.ValueProtos.Valueuint64(long value)static com.yandex.ydb.ValueProtos.Valueuint8(byte value)static com.yandex.ydb.ValueProtos.Valueutf8(String value)static com.yandex.ydb.ValueProtos.Valueuuid(long high, long low)static com.yandex.ydb.ValueProtos.Valueuuid(UUID uuid)static com.yandex.ydb.ValueProtos.ValuevoidValue()static com.yandex.ydb.ValueProtos.Valueyson(byte[] value)static com.yandex.ydb.ValueProtos.ValueysonOwn(byte[] value)will not copy given array
-
-
-
Method Detail
-
bool
public static com.yandex.ydb.ValueProtos.Value bool(boolean value)
-
toBool
public static boolean toBool(com.yandex.ydb.ValueProtos.Value value)
-
int8
public static com.yandex.ydb.ValueProtos.Value int8(byte value)
-
toInt8
public static byte toInt8(com.yandex.ydb.ValueProtos.Value value)
-
uint8
public static com.yandex.ydb.ValueProtos.Value uint8(byte value)
-
toUint8
public static int toUint8(com.yandex.ydb.ValueProtos.Value value)
-
int16
public static com.yandex.ydb.ValueProtos.Value int16(short value)
-
toInt16
public static short toInt16(com.yandex.ydb.ValueProtos.Value value)
-
uint16
public static com.yandex.ydb.ValueProtos.Value uint16(short value)
-
toUint16
public static int toUint16(com.yandex.ydb.ValueProtos.Value value)
-
int32
public static com.yandex.ydb.ValueProtos.Value int32(int value)
-
toInt32
public static int toInt32(com.yandex.ydb.ValueProtos.Value value)
-
uint32
public static com.yandex.ydb.ValueProtos.Value uint32(int value)
-
toUint32
public static long toUint32(com.yandex.ydb.ValueProtos.Value value)
-
uint32
public static com.yandex.ydb.ValueProtos.Value uint32(long value)
-
int64
public static com.yandex.ydb.ValueProtos.Value int64(long value)
-
toInt64
public static long toInt64(com.yandex.ydb.ValueProtos.Value value)
-
uint64
public static com.yandex.ydb.ValueProtos.Value uint64(long value)
-
toUint64
public static long toUint64(com.yandex.ydb.ValueProtos.Value value)
-
float32
public static com.yandex.ydb.ValueProtos.Value float32(float value)
-
toFloat32
public static float toFloat32(com.yandex.ydb.ValueProtos.Value value)
-
float64
public static com.yandex.ydb.ValueProtos.Value float64(double value)
-
toFloat64
public static double toFloat64(com.yandex.ydb.ValueProtos.Value value)
-
bytes
public static com.yandex.ydb.ValueProtos.Value bytes(com.google.protobuf.ByteString value)
-
string
public static com.yandex.ydb.ValueProtos.Value string(byte[] value)
-
stringOwn
public static com.yandex.ydb.ValueProtos.Value stringOwn(byte[] value)
will not copy given array
-
toString
public static byte[] toString(com.yandex.ydb.ValueProtos.Value value)
-
text
public static com.yandex.ydb.ValueProtos.Value text(String value)
-
utf8
public static com.yandex.ydb.ValueProtos.Value utf8(String value)
-
toUtf8
public static String toUtf8(com.yandex.ydb.ValueProtos.Value value)
-
yson
public static com.yandex.ydb.ValueProtos.Value yson(byte[] value)
-
ysonOwn
public static com.yandex.ydb.ValueProtos.Value ysonOwn(byte[] value)
will not copy given array
-
toYson
public static byte[] toYson(com.yandex.ydb.ValueProtos.Value value)
-
json
public static com.yandex.ydb.ValueProtos.Value json(String value)
-
toJson
public static String toJson(com.yandex.ydb.ValueProtos.Value value)
-
jsonDocument
public static com.yandex.ydb.ValueProtos.Value jsonDocument(String value)
-
toJsonDocument
public static String toJsonDocument(com.yandex.ydb.ValueProtos.Value value)
-
uuid
public static com.yandex.ydb.ValueProtos.Value uuid(long high, long low)
-
uuid
public static com.yandex.ydb.ValueProtos.Value uuid(UUID uuid)
-
toUuid
public static UUID toUuid(com.yandex.ydb.ValueProtos.Value value)
-
interval
public static com.yandex.ydb.ValueProtos.Value interval(long micros)
-
interval
public static com.yandex.ydb.ValueProtos.Value interval(Duration value)
-
toInterval
public static Duration toInterval(com.yandex.ydb.ValueProtos.Value value)
-
date
public static com.yandex.ydb.ValueProtos.Value date(long daysSinceEpoch)
-
date
public static com.yandex.ydb.ValueProtos.Value date(LocalDate value)
-
date
public static com.yandex.ydb.ValueProtos.Value date(Instant value)
-
toDate
public static LocalDate toDate(long daysSinceEpoch)
-
toDate
public static LocalDate toDate(com.yandex.ydb.ValueProtos.Value value)
-
datetime
public static com.yandex.ydb.ValueProtos.Value datetime(long secondsSinceEpoch)
-
datetime
public static com.yandex.ydb.ValueProtos.Value datetime(Instant value)
-
datetime
public static com.yandex.ydb.ValueProtos.Value datetime(LocalDateTime value)
-
toDatetime
public static LocalDateTime toDatetime(long secondsSinceEpoch)
-
toDatetime
public static LocalDateTime toDatetime(com.yandex.ydb.ValueProtos.Value value)
-
timestamp
public static com.yandex.ydb.ValueProtos.Value timestamp(long microsSinceEpoch)
-
timestamp
public static com.yandex.ydb.ValueProtos.Value timestamp(Instant value)
-
toTimestamp
public static Instant toTimestamp(long microsSinceEpoch)
-
toTimestamp
public static Instant toTimestamp(com.yandex.ydb.ValueProtos.Value value)
-
tzDate
public static com.yandex.ydb.ValueProtos.Value tzDate(String text)
-
toTzDate
public static ZonedDateTime toTzDate(String textValue)
-
toTzDate
public static ZonedDateTime toTzDate(com.yandex.ydb.ValueProtos.Value value)
-
tzDatetime
public static com.yandex.ydb.ValueProtos.Value tzDatetime(String text)
-
toTzDatetime
public static ZonedDateTime toTzDatetime(String textValue)
-
toTzDatetime
public static ZonedDateTime toTzDatetime(com.yandex.ydb.ValueProtos.Value value)
-
toTzTimestamp
public static ZonedDateTime toTzTimestamp(String value)
-
toTzTimestamp
public static ZonedDateTime toTzTimestamp(com.yandex.ydb.ValueProtos.Value value)
-
decimal
public static com.yandex.ydb.ValueProtos.Value decimal(long high, long low)
-
toDecimal
public static DecimalValue toDecimal(com.yandex.ydb.ValueProtos.Type type, com.yandex.ydb.ValueProtos.Value value)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict()
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key, com.yandex.ydb.ValueProtos.Value value)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3, com.yandex.ydb.ValueProtos.Value key4, com.yandex.ydb.ValueProtos.Value value4)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key1, com.yandex.ydb.ValueProtos.Value value1, com.yandex.ydb.ValueProtos.Value key2, com.yandex.ydb.ValueProtos.Value value2, com.yandex.ydb.ValueProtos.Value key3, com.yandex.ydb.ValueProtos.Value value3, com.yandex.ydb.ValueProtos.Value key4, com.yandex.ydb.ValueProtos.Value value4, com.yandex.ydb.ValueProtos.Value key5, com.yandex.ydb.ValueProtos.Value value5)
-
dict
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.ValuePair... pairs)
-
list
public static com.yandex.ydb.ValueProtos.Value list()
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item)
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2)
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3)
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3, com.yandex.ydb.ValueProtos.Value item4)
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item1, com.yandex.ydb.ValueProtos.Value item2, com.yandex.ydb.ValueProtos.Value item3, com.yandex.ydb.ValueProtos.Value item4, com.yandex.ydb.ValueProtos.Value item5)
-
list
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value... items)
-
list
public static com.yandex.ydb.ValueProtos.Value list(Iterable<com.yandex.ydb.ValueProtos.Value> items)
-
optional
public static com.yandex.ydb.ValueProtos.Value optional()
-
optional
public static com.yandex.ydb.ValueProtos.Value optional(com.yandex.ydb.ValueProtos.Value value)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4, com.yandex.ydb.ValueProtos.Value member5)
-
struct
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value firstMember, com.yandex.ydb.ValueProtos.Value... members)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member1, com.yandex.ydb.ValueProtos.Value member2, com.yandex.ydb.ValueProtos.Value member3, com.yandex.ydb.ValueProtos.Value member4, com.yandex.ydb.ValueProtos.Value member5)
-
tuple
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value... items)
-
voidValue
public static com.yandex.ydb.ValueProtos.Value voidValue()
-
toTypedValue
public static com.yandex.ydb.ValueProtos.TypedValue toTypedValue(Value p)
-
-