Class ColumnarBatch
- java.lang.Object
- 
- org.apache.iceberg.arrow.vectorized.ColumnarBatch
 
- 
- All Implemented Interfaces:
- java.lang.AutoCloseable
 
 public class ColumnarBatch extends java.lang.Object implements java.lang.AutoCloseableThis class is inspired by Spark'sColumnarBatch. This class wraps a columnar batch in the result set of an Iceberg table query.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Called to close all the columns in this batch.ColumnVectorcolumn(int ordinal)Returns the column at `ordinal`.org.apache.arrow.vector.VectorSchemaRootcreateVectorSchemaRootFromVectors()Create a new instance ofVectorSchemaRootfrom the arrow vectors stored in this arrow batch.intnumCols()Returns the number of columns that make up this batch.intnumRows()Returns the number of rows for read, including filtered rows.
 
- 
- 
- 
Method Detail- 
createVectorSchemaRootFromVectorspublic org.apache.arrow.vector.VectorSchemaRoot createVectorSchemaRootFromVectors() Create a new instance ofVectorSchemaRootfrom the arrow vectors stored in this arrow batch. The arrow vectors are owned by the reader.
 - 
closepublic void close() Called to close all the columns in this batch. It is not valid to access the data after calling this. This must be called at the end to clean up memory allocations.- Specified by:
- closein interface- java.lang.AutoCloseable
 
 - 
numColspublic int numCols() Returns the number of columns that make up this batch.
 - 
numRowspublic int numRows() Returns the number of rows for read, including filtered rows.
 - 
columnpublic ColumnVector column(int ordinal) Returns the column at `ordinal`.
 
- 
 
-