public interface FileRecordReader<T> extends RecordReader<T>
RecordReader
to support returning FileRecordIterator
.RecordReader.RecordIterator<T>
Modifier and Type | Method and Description |
---|---|
FileRecordIterator<T> |
readBatch()
Reads one batch.
|
close, filter, forEachRemaining, forEachRemainingWithPosition, toCloseableIterator, transform
@Nullable FileRecordIterator<T> readBatch() throws IOException
RecordReader
The returned iterator object and any contained objects may be held onto by the source for some time, so it should not be immediately reused by the reader.
readBatch
in interface RecordReader<T>
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.