Package org.apache.iceberg.variants
Interface VariantObject
-
- All Superinterfaces:
VariantValue
public interface VariantObject extends VariantValue
An variant object value.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default VariantObjectasObject()Returns this value as aVariantObject.static java.lang.StringasString(VariantObject object)static booleanequals(VariantObject self, java.lang.Object obj)java.lang.Iterable<java.lang.String>fieldNames()Returns the names of fields stored in this object.VariantValueget(java.lang.String name)Returns theVariantValuefor the field namednamein this object.static inthash(VariantObject self)intnumFields()Returns 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 Detail
-
get
VariantValue get(java.lang.String name)
Returns theVariantValuefor the field namednamein this object.
-
fieldNames
java.lang.Iterable<java.lang.String> fieldNames()
Returns the names of fields stored in this object.
-
numFields
int numFields()
Returns the number of fields stored in this object.
-
type
default PhysicalType type()
Description copied from interface:VariantValueReturns thePhysicalTypeof this value.- Specified by:
typein interfaceVariantValue
-
asObject
default VariantObject asObject()
Description copied from interface:VariantValueReturns this value as aVariantObject.- Specified by:
asObjectin interfaceVariantValue
-
asString
static java.lang.String asString(VariantObject object)
-
hash
static int hash(VariantObject self)
-
equals
static boolean equals(VariantObject self, java.lang.Object obj)
-
-