public class ColumnVector
extends java.lang.Object
implements java.lang.AutoCloseable
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:
Types.BooleanType
Types.IntegerType
Types.LongType
Types.FloatType
Types.DoubleType
Types.StringType
Types.BinaryType
Types.TimestampType
(with and without timezone)
Types.DateType
Types.TimeType
Types.UUIDType
Types.DecimalType
Modifier and Type | Method and 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-encoded
FieldVector . |
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() |
public org.apache.arrow.vector.FieldVector getFieldVector()
FieldVector
.FieldVector
public org.apache.arrow.vector.FieldVector getArrowVector()
FieldVector
public boolean hasNull()
public int numNulls()
public void close()
close
in interface java.lang.AutoCloseable
public boolean isNullAt(int rowId)
public boolean getBoolean(int rowId)
public int getInt(int rowId)
public long getLong(int rowId)
public float getFloat(int rowId)
public double getDouble(int rowId)
public java.lang.String getString(int rowId)
public byte[] getBinary(int rowId)
public java.math.BigDecimal getDecimal(int rowId, int precision, int scale)