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 |
---|---|
VectorizedColumnBatch |
copy(ColumnVector[] vectors) |
int |
getArity() |
InternalArray |
getArray(int rowId,
int colId) |
byte[] |
getBinary(int rowId,
int pos) |
boolean |
getBoolean(int rowId,
int colId) |
byte |
getByte(int rowId,
int colId) |
BytesColumnVector.Bytes |
getByteArray(int rowId,
int colId) |
Decimal |
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) |
InternalMap |
getMap(int rowId,
int colId) |
int |
getNumRows() |
InternalRow |
getRow(int rowId,
int colId) |
short |
getShort(int rowId,
int colId) |
BinaryString |
getString(int rowId,
int pos) |
Timestamp |
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 BinaryString getString(int rowId, int pos)
public byte[] getBinary(int rowId, int pos)
public BytesColumnVector.Bytes getByteArray(int rowId, int colId)
public Decimal getDecimal(int rowId, int colId, int precision, int scale)
public Timestamp getTimestamp(int rowId, int colId, int precision)
public InternalArray getArray(int rowId, int colId)
public InternalRow getRow(int rowId, int colId)
public InternalMap getMap(int rowId, int colId)
public VectorizedColumnBatch copy(ColumnVector[] vectors)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.