Record Class TupleFieldValue
java.lang.Object
java.lang.Record
tech.ydb.yoj.databind.expression.values.TupleFieldValue
- All Implemented Interfaces:
FieldValue,FieldValue
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.ydb.yoj.databind.expression.values.FieldValue
FieldValue.ValidationResult -
Constructor Summary
ConstructorsConstructorDescriptionTupleFieldValue(@NonNull Tuple tuple) Creates an instance of aTupleFieldValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Optional<Comparable<?>>getComparableByType(Type fieldType, FieldValueType valueType) getRaw(Schema.JavaField field) final inthashCode()Returns a hash code value for this object.isValidValueOfType(Type fieldType, FieldValueType valueType) toString()Returns a string representation of this record class.@NonNull Tupletuple()Returns the value of thetuplerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.ydb.yoj.databind.expression.FieldValue
isBool, isByteArray, isNumber, isReal, isString, isTimestamp, isTuple, isUuidMethods inherited from interface tech.ydb.yoj.databind.expression.values.FieldValue
getComparable
-
Constructor Details
-
TupleFieldValue
Creates an instance of aTupleFieldValuerecord class.- Parameters:
tuple- the value for thetuplerecord component
-
-
Method Details
-
getComparableByType
- Specified by:
getComparableByTypein interfaceFieldValue
-
getRaw
- Specified by:
getRawin interfaceFieldValue- Specified by:
getRawin interfaceFieldValue
-
isValidValueOfType
- Specified by:
isValidValueOfTypein interfaceFieldValue
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
tuple
Returns the value of thetuplerecord component.- Returns:
- the value of the
tuplerecord component
-