public class KeyValueDataFileRecordReader extends Object implements FileRecordReader<KeyValue>
RecordReader for reading KeyValue data files.RecordReader.RecordIterator<T>| Constructor and Description |
|---|
KeyValueDataFileRecordReader(FileRecordReader<InternalRow> reader,
RowType keyType,
RowType valueType,
int level) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the reader and should release all resources.
|
FileRecordIterator<KeyValue> |
readBatch()
Reads one batch.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, forEachRemaining, forEachRemainingWithPosition, toCloseableIterator, transformpublic KeyValueDataFileRecordReader(FileRecordReader<InternalRow> reader, RowType keyType, RowType valueType, int level)
@Nullable public FileRecordIterator<KeyValue> readBatch() throws IOException
RecordReaderThe 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 FileRecordReader<KeyValue>readBatch in interface RecordReader<KeyValue>IOExceptionpublic void close()
throws IOException
RecordReaderclose in interface Closeableclose in interface AutoCloseableclose in interface RecordReader<KeyValue>IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.