Class ColumnVector

java.lang.Object
org.apache.iceberg.arrow.vectorized.ColumnVector
All Implemented Interfaces:
AutoCloseable

public class ColumnVector extends Object implements AutoCloseable
This class is inspired by Spark's ColumnVector. This class represents the column data for an Iceberg table query. It wraps an arrow FieldVector and provides simple accessors for the row values. Advanced users can access the FieldVector.

Supported Iceberg data types:

  • Method Details Link icon

    • getFieldVector Link icon

      public org.apache.arrow.vector.FieldVector getFieldVector()
      Returns the potentially dict-encoded FieldVector.
      Returns:
      instance of FieldVector
    • getArrowVector Link icon

      public org.apache.arrow.vector.FieldVector getArrowVector()
      Decodes a dict-encoded vector and returns the actual arrow vector.
      Returns:
      instance of FieldVector
    • hasNull Link icon

      public boolean hasNull()
    • numNulls Link icon

      public int numNulls()
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • isNullAt Link icon

      public boolean isNullAt(int rowId)
    • getBoolean Link icon

      public boolean getBoolean(int rowId)
    • getInt Link icon

      public int getInt(int rowId)
    • getLong Link icon

      public long getLong(int rowId)
    • getFloat Link icon

      public float getFloat(int rowId)
    • getDouble Link icon

      public double getDouble(int rowId)
    • getString Link icon

      public String getString(int rowId)
    • getBinary Link icon

      public byte[] getBinary(int rowId)
    • getDecimal Link icon

      public BigDecimal getDecimal(int rowId, int precision, int scale)