Class 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:
    Serialized Form
    • Field Detail

      • 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:
        Constant Field Values
    • Constructor Detail

      • VectorizedColumnBatch

        public VectorizedColumnBatch​(ColumnVector[] vectors)
    • Method Detail

      • 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)
      • 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)