@Internal public class VectorizedColumnBatch extends Object implements Serializable
VectorizedColumnBatch
s are influenced by Apache Hive VectorizedRowBatch.
Modifier and Type | Field and Description |
---|---|
ColumnVector[] |
columns |
static int |
DEFAULT_SIZE
This number is carefully chosen to minimize overhead and typically allows one
VectorizedColumnBatch to fit in cache.
|
Constructor and Description |
---|
VectorizedColumnBatch(ColumnVector[] vectors) |
Modifier and Type | Method and Description |
---|---|
int |
getArity() |
ArrayData |
getArray(int rowId,
int colId) |
boolean |
getBoolean(int rowId,
int colId) |
byte |
getByte(int rowId,
int colId) |
BytesColumnVector.Bytes |
getByteArray(int rowId,
int colId) |
DecimalData |
getDecimal(int rowId,
int colId,
int precision,
int scale) |
double |
getDouble(int rowId,
int colId) |
float |
getFloat(int rowId,
int colId) |
int |
getInt(int rowId,
int colId) |
long |
getLong(int rowId,
int colId) |
MapData |
getMap(int rowId,
int colId) |
int |
getNumRows() |
RowData |
getRow(int rowId,
int colId) |
short |
getShort(int rowId,
int colId) |
String |
getString(int rowId,
int colId) |
TimestampData |
getTimestamp(int rowId,
int colId,
int precision) |
boolean |
isNullAt(int rowId,
int colId) |
void |
setNumRows(int numRows) |
public static final int DEFAULT_SIZE
public final ColumnVector[] columns
public VectorizedColumnBatch(ColumnVector[] vectors)
public void setNumRows(int numRows)
public int getNumRows()
public int getArity()
public boolean isNullAt(int rowId, int colId)
public boolean getBoolean(int rowId, int colId)
public byte getByte(int rowId, int colId)
public short getShort(int rowId, int colId)
public int getInt(int rowId, int colId)
public long getLong(int rowId, int colId)
public float getFloat(int rowId, int colId)
public double getDouble(int rowId, int colId)
public BytesColumnVector.Bytes getByteArray(int rowId, int colId)
public String getString(int rowId, int colId)
public DecimalData getDecimal(int rowId, int colId, int precision, int scale)
public TimestampData getTimestamp(int rowId, int colId, int precision)
public ArrayData getArray(int rowId, int colId)
public RowData getRow(int rowId, int colId)
public MapData getMap(int rowId, int colId)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.