Class VectorizedColumnBatch

java.lang.Object
org.apache.flink.table.data.columnar.vector.VectorizedColumnBatch
All Implemented Interfaces:
Serializable

@Internal public class VectorizedColumnBatch extends Object implements 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 Details

    • DEFAULT_SIZE

      public static final int DEFAULT_SIZE
      This number is carefully chosen to minimize overhead and typically allows one VectorizedColumnBatch to fit in cache.
      See Also:
    • columns

      public final ColumnVector[] columns
  • Constructor Details

    • VectorizedColumnBatch

      public VectorizedColumnBatch(ColumnVector[] vectors)
  • 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

      public BytesColumnVector.Bytes getByteArray(int rowId, int colId)
    • getString

      public String getString(int rowId, int colId)
    • getDecimal

      public DecimalData getDecimal(int rowId, int colId, int precision, int scale)
    • getTimestamp

      public TimestampData getTimestamp(int rowId, int colId, int precision)
    • getArray

      public ArrayData getArray(int rowId, int colId)
    • getRow

      public RowData getRow(int rowId, int colId)
    • getMap

      public MapData getMap(int rowId, int colId)