public final class IteratorResultIterator extends RecyclableIterator<InternalRow> implements FileRecordIterator<InternalRow>
RecordReader.RecordIterator
that returns the elements of an iterator.Constructor and Description |
---|
IteratorResultIterator(IteratorWithException<InternalRow,IOException> records,
Runnable recycler,
Path filePath,
long pos) |
Modifier and Type | Method and Description |
---|---|
Path |
filePath() |
InternalRow |
next()
Gets the next record from the iterator.
|
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 IteratorResultIterator(IteratorWithException<InternalRow,IOException> records, @Nullable Runnable recycler, Path filePath, long pos)
@Nullable public InternalRow next() throws IOException
RecordReader.RecordIterator
next
in interface RecordReader.RecordIterator<InternalRow>
IOException
public long returnedPosition()
FileRecordIterator
RecordReader.RecordIterator.next()
.returnedPosition
in interface FileRecordIterator<InternalRow>
public Path filePath()
filePath
in interface FileRecordIterator<InternalRow>
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.