Package org.apache.iceberg.variants
Class ValueArray
java.lang.Object
org.apache.iceberg.variants.ValueArray
- All Implemented Interfaces:
VariantArray,VariantValue
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(VariantValue value) get(int index) Returns theVariantValueatindexin this array.intReturns the number of fields stored in this array.intReturns the serialized size in bytes of this value.toString()intwriteTo(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, waitMethods inherited from interface org.apache.iceberg.variants.VariantArray
asArray, typeMethods inherited from interface org.apache.iceberg.variants.VariantValue
asObject, asPrimitive
-
Method Details
-
get
Description copied from interface:VariantArrayReturns theVariantValueatindexin this array.- Specified by:
getin interfaceVariantArray
-
numElements
public int numElements()Description copied from interface:VariantArrayReturns the number of fields stored in this array.- Specified by:
numElementsin interfaceVariantArray
-
add
-
sizeInBytes
public int sizeInBytes()Description copied from interface:VariantValueReturns the serialized size in bytes of this value.- Specified by:
sizeInBytesin interfaceVariantValue
-
writeTo
Description copied from interface:VariantValueWrites this value to the buffer at the given offset, ignoring the buffer's position and limit.- Specified by:
writeToin interfaceVariantValue
-
toString
-