Class ColumnVector
java.lang.Object
org.apache.iceberg.arrow.vectorized.ColumnVector
- All Implemented Interfaces:
- 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:
- Types.BooleanType
- Types.IntegerType
- Types.LongType
- Types.FloatType
- Types.DoubleType
- Types.StringType
- Types.BinaryType
- Types.FixedType
- Types.TimestampType(with and without timezone)
- Types.TimestampNanoType(with and without timezone)
- Types.DateType
- Types.TimeType
- Types.UUIDType
- Types.DecimalType
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()org.apache.arrow.vector.FieldVectorDecodes a dict-encoded vector and returns the actual arrow vector.byte[]getBinary(int rowId) booleangetBoolean(int rowId) getDecimal(int rowId, int precision, int scale) doublegetDouble(int rowId) org.apache.arrow.vector.FieldVectorReturns the potentially dict-encodedFieldVector.floatgetFloat(int rowId) intgetInt(int rowId) longgetLong(int rowId) getString(int rowId) booleanhasNull()booleanisNullAt(int rowId) intnumNulls()
- 
Method Details- 
getFieldVectorpublic org.apache.arrow.vector.FieldVector getFieldVector()Returns the potentially dict-encodedFieldVector.- Returns:
- instance of FieldVector
 
- 
getArrowVectorpublic org.apache.arrow.vector.FieldVector getArrowVector()Decodes a dict-encoded vector and returns the actual arrow vector.- Returns:
- instance of FieldVector
 
- 
hasNullpublic boolean hasNull()
- 
numNullspublic int numNulls()
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
isNullAtpublic boolean isNullAt(int rowId) 
- 
getBooleanpublic boolean getBoolean(int rowId) 
- 
getIntpublic int getInt(int rowId) 
- 
getLongpublic long getLong(int rowId) 
- 
getFloatpublic float getFloat(int rowId) 
- 
getDoublepublic double getDouble(int rowId) 
- 
getString
- 
getBinarypublic byte[] getBinary(int rowId) 
- 
getDecimal
 
-