Package org.apache.iceberg.variants
Interface VariantObject
- All Superinterfaces:
VariantValue
- All Known Implementing Classes:
ShreddedObject
An variant object value.
-
Method Summary
Modifier and TypeMethodDescriptiondefault VariantObjectasObject()Returns this value as aVariantObject.static StringasString(VariantObject object) static booleanequals(VariantObject self, Object obj) Returns the names of fields stored in this object.Returns theVariantValuefor the field namednamein this object.static inthash(VariantObject self) intReturns the number of fields stored in this object.default PhysicalTypetype()Returns thePhysicalTypeof this value.Methods inherited from interface org.apache.iceberg.variants.VariantValue
asArray, asPrimitive, sizeInBytes, writeTo
-
Method Details
-
get
Returns theVariantValuefor the field namednamein this object. -
fieldNames
Returns the names of fields stored in this object. -
numFields
int numFields()Returns the number of fields stored in this object. -
type
Description copied from interface:VariantValueReturns thePhysicalTypeof this value.- Specified by:
typein interfaceVariantValue
-
asObject
Description copied from interface:VariantValueReturns this value as aVariantObject.- Specified by:
asObjectin interfaceVariantValue
-
asString
-
hash
-
equals
-