Package tech.ydb.yoj.databind.expression
Interface FieldValue
- All Known Subinterfaces:
FieldValue
- All Known Implementing Classes:
BooleanFieldValue,ByteArrayFieldValue,IntegerFieldValue,RealFieldValue,StringFieldValue,TimestampFieldValue,TupleFieldValue,UuidFieldValue
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Comparable<?>getComparable(@NonNull Map<String, Object> values, Schema.JavaField field) Deprecated, for removal: This API element is subject to removal in a future version.Comparable<?>getComparable(Schema.JavaField field) Deprecated, for removal: This API element is subject to removal in a future version.getRaw(Schema.JavaField field) Deprecated, for removal: This API element is subject to removal in a future version.default booleanisBool()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanDeprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanisNumber()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanisReal()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanisString()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanDeprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanisTuple()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.default booleanisUuid()Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.static @NonNull FieldValueofBool(boolean bool) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a boolean value.static @NonNull FieldValueofByteArray(@NonNull ByteArray byteArray) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a byte array value.static @NonNull FieldValueofNum(long num) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely an integer.static FieldValueofObj(@NonNull Object obj, Schema.JavaField schemaField) Deprecated, for removal: This API element is subject to removal in a future version.static @NonNull FieldValueofReal(double real) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a floating-point value.static @NonNull FieldValueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a String.static @NonNull FieldValueofTimestamp(@NonNull Instant timestamp) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a timestamp value.static @NonNull FieldValueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is a tuple.static @NonNull FieldValueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely an UUID value.
-
Method Details
-
getRaw
Deprecated, for removal: This API element is subject to removal in a future version. -
getComparable
Deprecated, for removal: This API element is subject to removal in a future version. -
getComparable
@Nullable static Comparable<?> getComparable(@NonNull @NonNull Map<String, Object> values, @NonNull Schema.JavaField field) Deprecated, for removal: This API element is subject to removal in a future version. -
ofObj
Deprecated, for removal: This API element is subject to removal in a future version. -
isNumber
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is an integer;falseotherwise- See Also:
-
isReal
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is an floating-point number;falseotherwise- See Also:
-
isString
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is a String;falseotherwise- See Also:
-
isBool
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is an boolean;falseotherwise- See Also:
-
isTimestamp
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is a timestamp;falseotherwise- See Also:
-
isTuple
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is atuple;falseotherwise- See Also:
-
isByteArray
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is abyte array;falseotherwise- See Also:
-
isUuid
Deprecated.We recommend using Pattern Matching forinstanceof(Java 17+) or Pattern Matching forswitchExpressions and Statements (Java 21+), becauseFieldValueis asealedinterface.- Returns:
trueif this field value is anUUID;falseotherwise- See Also:
-
ofStr
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a String. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a enum or a custom value type.)- Parameters:
str- string value- Returns:
- field value that holds a specified string value
-
ofNum
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely an integer. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
num- integer value- Returns:
- field value that holds the specified integer value
-
ofReal
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a floating-point value. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
real- floating-point value- Returns:
- field value that holds the specified floating-point value
-
ofBool
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a boolean value. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
bool- boolean value- Returns:
- field value that holds the specified boolean value
-
ofTimestamp
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a timestamp value. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
timestamp- timestamp value- Returns:
- field value that holds the specified timestamp value
-
ofTuple
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is a tuple.- Parameters:
tuple- tuple value- Returns:
- field value that holds the specified timestamp value
-
ofByteArray
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely a byte array value. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
byteArray- byte array value- Returns:
- field value that holds the specified byte array value
-
ofUuid
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a new field value that is definitely an UUID value. (UnlikeofObj(Object, Schema.JavaField)which may perform implicit conversions from a custom value type.)- Parameters:
uuid- UUID value- Returns:
- field value that holds the specified UUID value
-
FieldValueinstead.