public class ProtoValue extends Object
| Constructor and Description |
|---|
ProtoValue() |
| Modifier and Type | Method and Description |
|---|---|
static com.yandex.ydb.ValueProtos.Value |
bool(boolean value) |
static com.yandex.ydb.ValueProtos.Value |
bytes(com.google.protobuf.ByteString value) |
static com.yandex.ydb.ValueProtos.Value |
date(Instant value) |
static com.yandex.ydb.ValueProtos.Value |
date(LocalDate value) |
static com.yandex.ydb.ValueProtos.Value |
date(long daysSinceEpoch) |
static com.yandex.ydb.ValueProtos.Value |
datetime(Instant value) |
static com.yandex.ydb.ValueProtos.Value |
datetime(LocalDateTime value) |
static com.yandex.ydb.ValueProtos.Value |
datetime(long secondsSinceEpoch) |
static com.yandex.ydb.ValueProtos.Value |
decimal(long high,
long low) |
static com.yandex.ydb.ValueProtos.Value |
dict() |
static com.yandex.ydb.ValueProtos.Value |
dict(com.yandex.ydb.ValueProtos.ValuePair... pairs) |
static com.yandex.ydb.ValueProtos.Value |
dict(com.yandex.ydb.ValueProtos.Value key,
com.yandex.ydb.ValueProtos.Value value) |
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) |
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) |
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) |
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) |
static com.yandex.ydb.ValueProtos.Value |
float32(float value) |
static com.yandex.ydb.ValueProtos.Value |
float64(double value) |
static Value |
fromPb(Type type,
com.yandex.ydb.ValueProtos.Value value) |
static com.yandex.ydb.ValueProtos.Value |
int16(short value) |
static com.yandex.ydb.ValueProtos.Value |
int32(int value) |
static com.yandex.ydb.ValueProtos.Value |
int64(long value) |
static com.yandex.ydb.ValueProtos.Value |
int8(byte value) |
static com.yandex.ydb.ValueProtos.Value |
interval(Duration value) |
static com.yandex.ydb.ValueProtos.Value |
interval(long micros) |
static com.yandex.ydb.ValueProtos.Value |
json(String value) |
static com.yandex.ydb.ValueProtos.Value |
jsonDocument(String value) |
static com.yandex.ydb.ValueProtos.Value |
list() |
static com.yandex.ydb.ValueProtos.Value |
list(Iterable<com.yandex.ydb.ValueProtos.Value> items) |
static com.yandex.ydb.ValueProtos.Value |
list(com.yandex.ydb.ValueProtos.Value... items) |
static com.yandex.ydb.ValueProtos.Value |
list(com.yandex.ydb.ValueProtos.Value item) |
static com.yandex.ydb.ValueProtos.Value |
list(com.yandex.ydb.ValueProtos.Value item1,
com.yandex.ydb.ValueProtos.Value item2) |
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) |
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) |
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) |
static com.yandex.ydb.ValueProtos.Value |
optional() |
static com.yandex.ydb.ValueProtos.Value |
optional(com.yandex.ydb.ValueProtos.Value value) |
static com.yandex.ydb.ValueProtos.Value |
string(byte[] value) |
static com.yandex.ydb.ValueProtos.Value |
string(String value,
Charset charset) |
static com.yandex.ydb.ValueProtos.Value |
stringOwn(byte[] value)
will not copy given array
|
static com.yandex.ydb.ValueProtos.Value |
struct(com.yandex.ydb.ValueProtos.Value member) |
static com.yandex.ydb.ValueProtos.Value |
struct(com.yandex.ydb.ValueProtos.Value firstMember,
com.yandex.ydb.ValueProtos.Value... members) |
static com.yandex.ydb.ValueProtos.Value |
struct(com.yandex.ydb.ValueProtos.Value member1,
com.yandex.ydb.ValueProtos.Value member2) |
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) |
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) |
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) |
static com.yandex.ydb.ValueProtos.Value |
text(String value) |
static com.yandex.ydb.ValueProtos.Value |
timestamp(Instant value) |
static com.yandex.ydb.ValueProtos.Value |
timestamp(long microsSinceEpoch) |
static boolean |
toBool(com.yandex.ydb.ValueProtos.Value value) |
static LocalDate |
toDate(long daysSinceEpoch) |
static LocalDate |
toDate(com.yandex.ydb.ValueProtos.Value value) |
static LocalDateTime |
toDatetime(long secondsSinceEpoch) |
static LocalDateTime |
toDatetime(com.yandex.ydb.ValueProtos.Value value) |
static DecimalValue |
toDecimal(com.yandex.ydb.ValueProtos.Type type,
com.yandex.ydb.ValueProtos.Value value) |
static float |
toFloat32(com.yandex.ydb.ValueProtos.Value value) |
static double |
toFloat64(com.yandex.ydb.ValueProtos.Value value) |
static short |
toInt16(com.yandex.ydb.ValueProtos.Value value) |
static int |
toInt32(com.yandex.ydb.ValueProtos.Value value) |
static long |
toInt64(com.yandex.ydb.ValueProtos.Value value) |
static byte |
toInt8(com.yandex.ydb.ValueProtos.Value value) |
static Duration |
toInterval(com.yandex.ydb.ValueProtos.Value value) |
static String |
toJson(com.yandex.ydb.ValueProtos.Value value) |
static String |
toJsonDocument(com.yandex.ydb.ValueProtos.Value value) |
static byte[] |
toString(com.yandex.ydb.ValueProtos.Value value) |
static Instant |
toTimestamp(long microsSinceEpoch) |
static Instant |
toTimestamp(com.yandex.ydb.ValueProtos.Value value) |
static com.yandex.ydb.ValueProtos.TypedValue |
toTypedValue(Value p) |
static ZonedDateTime |
toTzDate(String textValue) |
static ZonedDateTime |
toTzDate(com.yandex.ydb.ValueProtos.Value value) |
static ZonedDateTime |
toTzDatetime(String textValue) |
static ZonedDateTime |
toTzDatetime(com.yandex.ydb.ValueProtos.Value value) |
static ZonedDateTime |
toTzTimestamp(String value) |
static ZonedDateTime |
toTzTimestamp(com.yandex.ydb.ValueProtos.Value value) |
static int |
toUint16(com.yandex.ydb.ValueProtos.Value value) |
static long |
toUint32(com.yandex.ydb.ValueProtos.Value value) |
static long |
toUint64(com.yandex.ydb.ValueProtos.Value value) |
static int |
toUint8(com.yandex.ydb.ValueProtos.Value value) |
static String |
toUtf8(com.yandex.ydb.ValueProtos.Value value) |
static UUID |
toUuid(com.yandex.ydb.ValueProtos.Value value) |
static byte[] |
toYson(com.yandex.ydb.ValueProtos.Value value) |
static com.yandex.ydb.ValueProtos.Value |
tuple(com.yandex.ydb.ValueProtos.Value... items) |
static com.yandex.ydb.ValueProtos.Value |
tuple(com.yandex.ydb.ValueProtos.Value member) |
static com.yandex.ydb.ValueProtos.Value |
tuple(com.yandex.ydb.ValueProtos.Value member1,
com.yandex.ydb.ValueProtos.Value member2) |
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) |
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) |
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) |
static com.yandex.ydb.ValueProtos.Value |
tzDate(String text) |
static com.yandex.ydb.ValueProtos.Value |
tzDatetime(String text) |
static com.yandex.ydb.ValueProtos.Value |
uint16(short value) |
static com.yandex.ydb.ValueProtos.Value |
uint32(int value) |
static com.yandex.ydb.ValueProtos.Value |
uint32(long value) |
static com.yandex.ydb.ValueProtos.Value |
uint64(long value) |
static com.yandex.ydb.ValueProtos.Value |
uint8(byte value) |
static com.yandex.ydb.ValueProtos.Value |
utf8(String value) |
static com.yandex.ydb.ValueProtos.Value |
uuid(long high,
long low) |
static com.yandex.ydb.ValueProtos.Value |
uuid(UUID uuid) |
static com.yandex.ydb.ValueProtos.Value |
voidValue() |
static com.yandex.ydb.ValueProtos.Value |
yson(byte[] value) |
static com.yandex.ydb.ValueProtos.Value |
ysonOwn(byte[] value)
will not copy given array
|
public static com.yandex.ydb.ValueProtos.Value bool(boolean value)
public static boolean toBool(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value int8(byte value)
public static byte toInt8(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uint8(byte value)
public static int toUint8(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value int16(short value)
public static short toInt16(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uint16(short value)
public static int toUint16(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value int32(int value)
public static int toInt32(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uint32(int value)
public static long toUint32(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uint32(long value)
public static com.yandex.ydb.ValueProtos.Value int64(long value)
public static long toInt64(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uint64(long value)
public static long toUint64(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value float32(float value)
public static float toFloat32(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value float64(double value)
public static double toFloat64(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value bytes(com.google.protobuf.ByteString value)
public static com.yandex.ydb.ValueProtos.Value string(byte[] value)
public static com.yandex.ydb.ValueProtos.Value stringOwn(byte[] value)
public static byte[] toString(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value text(String value)
public static com.yandex.ydb.ValueProtos.Value utf8(String value)
public static String toUtf8(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value yson(byte[] value)
public static com.yandex.ydb.ValueProtos.Value ysonOwn(byte[] value)
public static byte[] toYson(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value json(String value)
public static String toJson(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value jsonDocument(String value)
public static String toJsonDocument(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value uuid(long high,
long low)
public static com.yandex.ydb.ValueProtos.Value uuid(UUID uuid)
public static UUID toUuid(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value interval(long micros)
public static com.yandex.ydb.ValueProtos.Value interval(Duration value)
public static Duration toInterval(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value date(long daysSinceEpoch)
public static com.yandex.ydb.ValueProtos.Value date(LocalDate value)
public static com.yandex.ydb.ValueProtos.Value date(Instant value)
public static LocalDate toDate(long daysSinceEpoch)
public static LocalDate toDate(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value datetime(long secondsSinceEpoch)
public static com.yandex.ydb.ValueProtos.Value datetime(Instant value)
public static com.yandex.ydb.ValueProtos.Value datetime(LocalDateTime value)
public static LocalDateTime toDatetime(long secondsSinceEpoch)
public static LocalDateTime toDatetime(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value timestamp(long microsSinceEpoch)
public static com.yandex.ydb.ValueProtos.Value timestamp(Instant value)
public static Instant toTimestamp(long microsSinceEpoch)
public static Instant toTimestamp(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value tzDate(String text)
public static ZonedDateTime toTzDate(String textValue)
public static ZonedDateTime toTzDate(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value tzDatetime(String text)
public static ZonedDateTime toTzDatetime(String textValue)
public static ZonedDateTime toTzDatetime(com.yandex.ydb.ValueProtos.Value value)
public static ZonedDateTime toTzTimestamp(String value)
public static ZonedDateTime toTzTimestamp(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value decimal(long high,
long low)
public static DecimalValue toDecimal(com.yandex.ydb.ValueProtos.Type type, com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value dict()
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.Value key,
com.yandex.ydb.ValueProtos.Value value)
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)
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)
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)
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)
public static com.yandex.ydb.ValueProtos.Value dict(com.yandex.ydb.ValueProtos.ValuePair... pairs)
public static com.yandex.ydb.ValueProtos.Value list()
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item)
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value item1,
com.yandex.ydb.ValueProtos.Value item2)
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)
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)
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)
public static com.yandex.ydb.ValueProtos.Value list(com.yandex.ydb.ValueProtos.Value... items)
public static com.yandex.ydb.ValueProtos.Value list(Iterable<com.yandex.ydb.ValueProtos.Value> items)
public static com.yandex.ydb.ValueProtos.Value optional()
public static com.yandex.ydb.ValueProtos.Value optional(com.yandex.ydb.ValueProtos.Value value)
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member)
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value member1,
com.yandex.ydb.ValueProtos.Value member2)
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)
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)
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)
public static com.yandex.ydb.ValueProtos.Value struct(com.yandex.ydb.ValueProtos.Value firstMember,
com.yandex.ydb.ValueProtos.Value... members)
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member)
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value member1,
com.yandex.ydb.ValueProtos.Value member2)
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)
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)
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)
public static com.yandex.ydb.ValueProtos.Value tuple(com.yandex.ydb.ValueProtos.Value... items)
public static com.yandex.ydb.ValueProtos.Value voidValue()
public static com.yandex.ydb.ValueProtos.TypedValue toTypedValue(Value p)
Copyright © 2021. All rights reserved.