Class VectorizedColumnBatch
java.lang.Object
org.apache.flink.table.data.columnar.vector.VectorizedColumnBatch
- All Implemented Interfaces:
Serializable
A VectorizedColumnBatch is a set of rows, organized with each column as a vector. It is the unit
of query execution, organized to minimize the cost per row.
VectorizedColumnBatchs are influenced by Apache Hive VectorizedRowBatch.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ColumnVector[]static final intThis number is carefully chosen to minimize overhead and typically allows one VectorizedColumnBatch to fit in cache. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetArity()getArray(int rowId, int colId) booleangetBoolean(int rowId, int colId) bytegetByte(int rowId, int colId) getByteArray(int rowId, int colId) getDecimal(int rowId, int colId, int precision, int scale) doublegetDouble(int rowId, int colId) floatgetFloat(int rowId, int colId) intgetInt(int rowId, int colId) longgetLong(int rowId, int colId) getMap(int rowId, int colId) intgetRow(int rowId, int colId) shortgetShort(int rowId, int colId) getString(int rowId, int colId) getTimestamp(int rowId, int colId, int precision) booleanisNullAt(int rowId, int colId) voidsetNumRows(int numRows)
-
Field Details
-
DEFAULT_SIZE
public static final int DEFAULT_SIZEThis number is carefully chosen to minimize overhead and typically allows one VectorizedColumnBatch to fit in cache.- See Also:
-
columns
-
-
Constructor Details
-
VectorizedColumnBatch
-
-
Method Details
-
setNumRows
public void setNumRows(int numRows) -
getNumRows
public int getNumRows() -
getArity
public int getArity() -
isNullAt
public boolean isNullAt(int rowId, int colId) -
getBoolean
public boolean getBoolean(int rowId, int colId) -
getByte
public byte getByte(int rowId, int colId) -
getShort
public short getShort(int rowId, int colId) -
getInt
public int getInt(int rowId, int colId) -
getLong
public long getLong(int rowId, int colId) -
getFloat
public float getFloat(int rowId, int colId) -
getDouble
public double getDouble(int rowId, int colId) -
getByteArray
-
getString
-
getDecimal
-
getTimestamp
-
getArray
-
getRow
-
getMap
-