Class ColumnVector
- java.lang.Object
-
- org.apache.iceberg.arrow.vectorized.ColumnVector
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ColumnVector extends java.lang.Object implements java.lang.AutoCloseable
This class is inspired by Spark'sColumnVector
. This class represents the column data for an Iceberg table query. It wraps an arrowFieldVector
and provides simple accessors for the row values. Advanced users can access theFieldVector
.Supported Iceberg data types:
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.arrow.vector.FieldVector
getArrowVector()
Decodes a dict-encoded vector and returns the actual arrow vector.byte[]
getBinary(int rowId)
boolean
getBoolean(int rowId)
java.math.BigDecimal
getDecimal(int rowId, int precision, int scale)
double
getDouble(int rowId)
org.apache.arrow.vector.FieldVector
getFieldVector()
Returns the potentially dict-encodedFieldVector
.float
getFloat(int rowId)
int
getInt(int rowId)
long
getLong(int rowId)
java.lang.String
getString(int rowId)
boolean
hasNull()
boolean
isNullAt(int rowId)
int
numNulls()
-
-
-
Method Detail
-
getFieldVector
public org.apache.arrow.vector.FieldVector getFieldVector()
Returns the potentially dict-encodedFieldVector
.- Returns:
- instance of
FieldVector
-
getArrowVector
public org.apache.arrow.vector.FieldVector getArrowVector()
Decodes a dict-encoded vector and returns the actual arrow vector.- Returns:
- instance of
FieldVector
-
hasNull
public boolean hasNull()
-
numNulls
public int numNulls()
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
isNullAt
public boolean isNullAt(int rowId)
-
getBoolean
public boolean getBoolean(int rowId)
-
getInt
public int getInt(int rowId)
-
getLong
public long getLong(int rowId)
-
getFloat
public float getFloat(int rowId)
-
getDouble
public double getDouble(int rowId)
-
getString
public java.lang.String getString(int rowId)
-
getBinary
public byte[] getBinary(int rowId)
-
getDecimal
public java.math.BigDecimal getDecimal(int rowId, int precision, int scale)
-
-