public class ColumnarRowIterator extends RecyclableIterator<InternalRow> implements FileRecordIterator<InternalRow>, VectorizedRecordIterator
RecordReader.RecordIterator
that returns InternalRow
s. The next row is set by
ColumnarRow.setRowId(int)
.Constructor and Description |
---|
ColumnarRowIterator(Path filePath,
ColumnarRow row,
Runnable recycler) |
Modifier and Type | Method and Description |
---|---|
VectorizedColumnBatch |
batch() |
ColumnarRowIterator |
copy(ColumnVector[] vectors) |
Path |
filePath() |
ColumnarRowIterator |
mapping(PartitionInfo partitionInfo,
int[] indexMapping) |
InternalRow |
next()
Gets the next record from the iterator.
|
void |
reset(long nextFilePos) |
long |
returnedPosition()
Get the row position of the row returned by
RecordReader.RecordIterator.next() . |
releaseBatch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filter, transform
releaseBatch
public ColumnarRowIterator(Path filePath, ColumnarRow row, @Nullable Runnable recycler)
public void reset(long nextFilePos)
@Nullable public InternalRow next()
RecordReader.RecordIterator
next
in interface RecordReader.RecordIterator<InternalRow>
public long returnedPosition()
FileRecordIterator
RecordReader.RecordIterator.next()
.returnedPosition
in interface FileRecordIterator<InternalRow>
public Path filePath()
filePath
in interface FileRecordIterator<InternalRow>
public ColumnarRowIterator copy(ColumnVector[] vectors)
public ColumnarRowIterator mapping(@Nullable PartitionInfo partitionInfo, @Nullable int[] indexMapping)
public VectorizedColumnBatch batch()
batch
in interface VectorizedRecordIterator
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.