@Public public interface InternalArray extends DataGetters
ArrayType
.
Note: All elements of this data structure must be internal data structures and must be of the
same type. See InternalRow
for more information about internal data structures.
GenericArray
Modifier and Type | Interface and Description |
---|---|
static interface |
InternalArray.ElementGetter
Accessor for getting the elements of an array during runtime.
|
Modifier and Type | Method and Description |
---|---|
static InternalArray.ElementGetter |
createElementGetter(DataType elementType)
Creates an accessor for getting elements in an internal array data structure at the given
position.
|
int |
size()
Returns the number of elements in this array.
|
boolean[] |
toBooleanArray() |
byte[] |
toByteArray() |
double[] |
toDoubleArray() |
float[] |
toFloatArray() |
int[] |
toIntArray() |
long[] |
toLongArray() |
short[] |
toShortArray() |
getArray, getBinary, getBoolean, getByte, getDecimal, getDouble, getFloat, getInt, getLong, getMap, getRow, getShort, getString, getTimestamp, isNullAt
int size()
boolean[] toBooleanArray()
byte[] toByteArray()
short[] toShortArray()
int[] toIntArray()
long[] toLongArray()
float[] toFloatArray()
double[] toDoubleArray()
static InternalArray.ElementGetter createElementGetter(DataType elementType)
elementType
- the element type of the arrayCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.