Package org.apache.iceberg.variants
Interface VariantObject
- All Superinterfaces:
VariantValue
- All Known Implementing Classes:
ShreddedObject
An variant object value.
-
Method Summary
Modifier and TypeMethodDescriptiondefault VariantObject
asObject()
Returns this value as aVariantObject
.static String
asString
(VariantObject object) Returns the names of fields stored in this object.Returns theVariantValue
for the field namedname
in this object.int
Returns the number of fields stored in this object.default PhysicalType
type()
Returns thePhysicalType
of this value.Methods inherited from interface org.apache.iceberg.variants.VariantValue
asArray, asPrimitive, sizeInBytes, writeTo
-
Method Details
-
get
Returns theVariantValue
for the field namedname
in 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:VariantValue
Returns thePhysicalType
of this value.- Specified by:
type
in interfaceVariantValue
-
asObject
Description copied from interface:VariantValue
Returns this value as aVariantObject
.- Specified by:
asObject
in interfaceVariantValue
-
asString
-