public class HivePaimonArray extends Object implements InternalArray
InternalArray.ElementGetter| Constructor and Description |
|---|
HivePaimonArray(DataType elementType,
List<Object> list) |
| Modifier and Type | Method and Description |
|---|---|
InternalArray |
getArray(int i)
Returns the array value at the given position.
|
byte[] |
getBinary(int i)
Returns the binary value at the given position.
|
boolean |
getBoolean(int i)
Returns the boolean value at the given position.
|
byte |
getByte(int i)
Returns the byte value at the given position.
|
Decimal |
getDecimal(int i,
int precision,
int scale)
Returns the decimal value at the given position.
|
double |
getDouble(int i)
Returns the double value at the given position.
|
float |
getFloat(int i)
Returns the float value at the given position.
|
int |
getInt(int i)
Returns the integer value at the given position.
|
List<Object> |
getList() |
long |
getLong(int i)
Returns the long value at the given position.
|
InternalMap |
getMap(int i)
Returns the map value at the given position.
|
InternalRow |
getRow(int i,
int i1)
Returns the row value at the given position.
|
short |
getShort(int i)
Returns the short value at the given position.
|
BinaryString |
getString(int i)
Returns the string value at the given position.
|
Timestamp |
getTimestamp(int i,
int precision)
Returns the timestamp value at the given position.
|
boolean |
isNullAt(int i)
Returns true if the element is null 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateElementGetterpublic int size()
InternalArraysize in interface InternalArraypublic boolean isNullAt(int i)
DataGettersisNullAt in interface DataGetterspublic boolean getBoolean(int i)
DataGettersgetBoolean in interface DataGetterspublic byte getByte(int i)
DataGettersgetByte in interface DataGetterspublic short getShort(int i)
DataGettersgetShort in interface DataGetterspublic int getInt(int i)
DataGettersgetInt in interface DataGetterspublic long getLong(int i)
DataGettersgetLong in interface DataGetterspublic float getFloat(int i)
DataGettersgetFloat in interface DataGetterspublic double getDouble(int i)
DataGettersgetDouble in interface DataGetterspublic BinaryString getString(int i)
DataGettersgetString in interface DataGetterspublic Decimal getDecimal(int i, int precision, int scale)
DataGettersThe precision and scale are required to determine whether the decimal value was stored in
a compact representation (see Decimal).
getDecimal in interface DataGetterspublic Timestamp getTimestamp(int i, int precision)
DataGettersThe precision is required to determine whether the timestamp value was stored in a compact
representation (see Timestamp).
getTimestamp in interface DataGetterspublic byte[] getBinary(int i)
DataGettersgetBinary in interface DataGetterspublic InternalArray getArray(int i)
DataGettersgetArray in interface DataGetterspublic InternalMap getMap(int i)
DataGettersgetMap in interface DataGetterspublic InternalRow getRow(int i, int i1)
DataGettersThe number of fields is required to correctly extract the row.
getRow in interface DataGetterspublic boolean[] toBooleanArray()
toBooleanArray in interface InternalArraypublic byte[] toByteArray()
toByteArray in interface InternalArraypublic short[] toShortArray()
toShortArray in interface InternalArraypublic int[] toIntArray()
toIntArray in interface InternalArraypublic long[] toLongArray()
toLongArray in interface InternalArraypublic float[] toFloatArray()
toFloatArray in interface InternalArraypublic double[] toDoubleArray()
toDoubleArray in interface InternalArrayCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.