Interface PartitionReader<P,OUT>
- Type Parameters:
P- The type of partition.OUT- The type of returned record.
- All Superinterfaces:
AutoCloseable,Closeable,Serializable
Reader that reads record from given partitions.
This reader should only use in non-parallel instance, e.g. : used by lookup function.
-
Method Summary
-
Method Details
-
open
Opens the reader with given partitions.- Throws:
IOException
-
read
Reads the next record from the partitions.When this method is called, the reader it guaranteed to be opened.
- Parameters:
reuse- Object that may be reused.- Returns:
- Read record.
- Throws:
IOException
-
close
Close the reader, this method should release all resources.When this method is called, the reader it guaranteed to be opened.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-