public class ArrowColumnarBatch extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected ArrowColumnVector[] |
columns |
protected int |
numRows |
protected ArrowColumnarBatchRow |
row |
| Constructor and Description |
|---|
ArrowColumnarBatch(ArrowColumnVector[] columns) |
ArrowColumnarBatch(ArrowColumnVector[] columns,
int numRows)
Create a new batch from existing column vectors.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called to close all the columns in this batch.
|
ArrowColumnVector |
column(int ordinal)
Returns the column at `ordinal`.
|
ArrowColumnarBatchRow |
getRow(int rowId)
Returns the row in this batch at `rowId`.
|
int |
numCols()
Returns the number of columns that make up this batch.
|
int |
numRows()
Returns the number of rows for read, including filtered rows.
|
Iterator<ArrowColumnarBatchRow> |
rowIterator()
Returns an iterator over the rows in this batch.
|
void |
setNumRows(int numRows)
Sets the number of rows in this batch.
|
protected int numRows
protected final ArrowColumnVector[] columns
protected final ArrowColumnarBatchRow row
public ArrowColumnarBatch(ArrowColumnVector[] columns)
public ArrowColumnarBatch(ArrowColumnVector[] columns, int numRows)
columns - The columns of this batchnumRows - The number of rows in this batchpublic void close()
close in interface AutoCloseablepublic Iterator<ArrowColumnarBatchRow> rowIterator()
public void setNumRows(int numRows)
public int numCols()
public int numRows()
public ArrowColumnVector column(int ordinal)
public ArrowColumnarBatchRow getRow(int rowId)
Copyright © 2023 The Apache Software Foundation. All rights reserved.