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 long |
nextFilePos |
protected int |
nextPos |
protected int |
num |
protected Runnable |
recycler |
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) |
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 nextPos
protected long nextFilePos
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>
protected ColumnarRowIterator copy(ColumnVector[] vectors)
public ColumnarRowIterator mapping(@Nullable PartitionInfo partitionInfo, @Nullable int[] indexMapping)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.