Package org.apache.iceberg.variants
Class ValueArray
java.lang.Object
org.apache.iceberg.variants.ValueArray
- All Implemented Interfaces:
VariantArray
,VariantValue
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(VariantValue value) get
(int index) Returns theVariantValue
atindex
in this array.int
Returns the number of fields stored in this array.int
Returns the serialized size in bytes of this value.toString()
int
writeTo
(ByteBuffer buffer, int offset) Writes this value to the buffer at the given offset, ignoring the buffer's position and limit.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.iceberg.variants.VariantArray
asArray, type
Methods inherited from interface org.apache.iceberg.variants.VariantValue
asObject, asPrimitive
-
Method Details
-
get
Description copied from interface:VariantArray
Returns theVariantValue
atindex
in this array.- Specified by:
get
in interfaceVariantArray
-
numElements
public int numElements()Description copied from interface:VariantArray
Returns the number of fields stored in this array.- Specified by:
numElements
in interfaceVariantArray
-
add
-
sizeInBytes
public int sizeInBytes()Description copied from interface:VariantValue
Returns the serialized size in bytes of this value.- Specified by:
sizeInBytes
in interfaceVariantValue
-
writeTo
Description copied from interface:VariantValue
Writes this value to the buffer at the given offset, ignoring the buffer's position and limit.- Specified by:
writeTo
in interfaceVariantValue
-
toString
-