public class ColumnarRowIterator extends RecyclableIterator<InternalRow> implements FileRecordIterator<InternalRow>
RecordReader.RecordIterator
that returns InternalRow
s. The next row is set by
ColumnarRow.setRowId(int)
.Modifier and Type | Field and Description |
---|---|
protected Path |
filePath |
protected int |
index |
protected int |
num |
protected LongIterator |
positionIterator |
protected Runnable |
recycler |
protected long |
returnedPosition |
protected int |
returnedPositionIndex |
protected ColumnarRow |
row |
Constructor and Description |
---|
ColumnarRowIterator(Path filePath,
ColumnarRow row,
Runnable recycler) |
Modifier and Type | Method and Description |
---|---|
protected 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) |
void |
reset(LongIterator positions) |
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
protected final Path filePath
protected final ColumnarRow row
protected final Runnable recycler
protected int num
protected int index
protected int returnedPositionIndex
protected long returnedPosition
protected LongIterator positionIterator
public ColumnarRowIterator(Path filePath, ColumnarRow row, @Nullable Runnable recycler)
public void reset(long nextFilePos)
public void reset(LongIterator positions)
@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>
protected ColumnarRowIterator copy(ColumnVector[] vectors)
public ColumnarRowIterator mapping(@Nullable PartitionInfo partitionInfo, @Nullable int[] indexMapping)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.