public class DataReadResult
extends java.lang.Object
ColumnarBatch format with an optional
selection vector to select only a subset of rows for this columnar batch.
The selection vector is of type boolean and has the same size as the data in the corresponding
ColumnarBatch. For each row index, a value of true in the selection vector indicates
the row at the same index in the data ColumnarBatch is valid; a value of false
indicates the row should be ignored. If there is no selection vector then all the rows are valid.| Constructor and Description |
|---|
DataReadResult(ColumnarBatch data,
java.util.Optional<ColumnVector> selectionVector) |
| Modifier and Type | Method and Description |
|---|---|
ColumnarBatch |
getData()
Return the data as
ColumnarBatch. |
java.util.Optional<ColumnVector> |
getSelectionVector()
Optional selection vector containing one entry for each row in data indicating whether
a row is selected or not selected.
|
ColumnarBatch |
rewriteWithoutSelectionVector()
Helper method to rewrite the data in this result by removing the rows that are not
selected.
|
public DataReadResult(ColumnarBatch data, java.util.Optional<ColumnVector> selectionVector)
public ColumnarBatch getData()
ColumnarBatch. Not all rows in the data are valid for this result.
An optional selectionVector determines which rows are selected. If there is no
selection vector that means all rows in this columnar batch are valid for this result.public java.util.Optional<ColumnVector> getSelectionVector()
ColumnVector indicating which rows are validpublic ColumnarBatch rewriteWithoutSelectionVector()
ColumnarBatch with only the selected rows according to the
getSelectionVector()