@InterfaceStability.Evolving
public final class ColumnarArray
extends org.apache.spark.sql.catalyst.util.ArrayData
ColumnVector
.Constructor and Description |
---|
ColumnarArray(ColumnVector data,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
Object[] |
array() |
org.apache.spark.sql.catalyst.util.ArrayData |
copy() |
Object |
get(int ordinal,
DataType dataType) |
ColumnarArray |
getArray(int ordinal) |
byte[] |
getBinary(int ordinal) |
boolean |
getBoolean(int ordinal) |
byte |
getByte(int ordinal) |
Decimal |
getDecimal(int ordinal,
int precision,
int scale) |
double |
getDouble(int ordinal) |
float |
getFloat(int ordinal) |
int |
getInt(int ordinal) |
org.apache.spark.unsafe.types.CalendarInterval |
getInterval(int ordinal) |
long |
getLong(int ordinal) |
ColumnarMap |
getMap(int ordinal) |
short |
getShort(int ordinal) |
ColumnarRow |
getStruct(int ordinal,
int numFields) |
org.apache.spark.unsafe.types.UTF8String |
getUTF8String(int ordinal) |
boolean |
isNullAt(int ordinal) |
int |
numElements() |
void |
setNullAt(int ordinal) |
boolean[] |
toBooleanArray() |
byte[] |
toByteArray() |
double[] |
toDoubleArray() |
float[] |
toFloatArray() |
int[] |
toIntArray() |
long[] |
toLongArray() |
short[] |
toShortArray() |
void |
update(int ordinal,
Object value) |
public ColumnarArray(ColumnVector data, int offset, int length)
public int numElements()
numElements
in class org.apache.spark.sql.catalyst.util.ArrayData
public org.apache.spark.sql.catalyst.util.ArrayData copy()
copy
in class org.apache.spark.sql.catalyst.util.ArrayData
public boolean[] toBooleanArray()
toBooleanArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public byte[] toByteArray()
toByteArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public short[] toShortArray()
toShortArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public int[] toIntArray()
toIntArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public long[] toLongArray()
toLongArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public float[] toFloatArray()
toFloatArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public double[] toDoubleArray()
toDoubleArray
in class org.apache.spark.sql.catalyst.util.ArrayData
public Object[] array()
array
in class org.apache.spark.sql.catalyst.util.ArrayData
public boolean isNullAt(int ordinal)
public boolean getBoolean(int ordinal)
public byte getByte(int ordinal)
public short getShort(int ordinal)
public int getInt(int ordinal)
public long getLong(int ordinal)
public float getFloat(int ordinal)
public double getDouble(int ordinal)
public Decimal getDecimal(int ordinal, int precision, int scale)
public org.apache.spark.unsafe.types.UTF8String getUTF8String(int ordinal)
public byte[] getBinary(int ordinal)
public org.apache.spark.unsafe.types.CalendarInterval getInterval(int ordinal)
public ColumnarRow getStruct(int ordinal, int numFields)
public ColumnarArray getArray(int ordinal)
public ColumnarMap getMap(int ordinal)
public Object get(int ordinal, DataType dataType)
public void update(int ordinal, Object value)
update
in class org.apache.spark.sql.catalyst.util.ArrayData
public void setNullAt(int ordinal)
setNullAt
in class org.apache.spark.sql.catalyst.util.ArrayData