@InterfaceStability.Evolving
public final class ColumnarBatch
extends Object
Constructor and Description |
---|
ColumnarBatch(ColumnVector[] columns) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Called to close all the columns in this batch.
|
ColumnVector |
column(int ordinal)
Returns the column at `ordinal`.
|
org.apache.spark.sql.catalyst.InternalRow |
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.
|
java.util.Iterator<org.apache.spark.sql.catalyst.InternalRow> |
rowIterator()
Returns an iterator over the rows in this batch.
|
void |
setNumRows(int numRows)
Sets the number of rows in this batch.
|
public ColumnarBatch(ColumnVector[] columns)
public void close()
public java.util.Iterator<org.apache.spark.sql.catalyst.InternalRow> rowIterator()
public void setNumRows(int numRows)
public int numCols()
public int numRows()
public ColumnVector column(int ordinal)
public org.apache.spark.sql.catalyst.InternalRow getRow(int rowId)