public static interface BulkFormat.Reader<T> extends Closeable
|Modifier and Type||Method and Description|
Closes the reader and should release all resources.
Reads one batch.
@Nullable BulkFormat.RecordIterator<T> readBatch() throws IOException
The returned iterator object and any contained objects may be held onto by the file source for some time, so it should not be immediately reused by the reader.
To implement reuse and to save object allocation, consider using a
Pool and recycle objects into the Pool in the
void close() throws IOException
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.