P - The type of partition.OUT - The type of returned record.@Internal public interface PartitionReader<P,OUT> extends Closeable, Serializable
This reader should only use in non-parallel instance, e.g. : used by lookup function.
void open(List<P> partitions) throws IOException
IOException@Nullable OUT read(OUT reuse) throws IOException
When this method is called, the reader it guaranteed to be opened.
reuse - Object that may be reused.IOExceptionvoid close()
throws IOException
When this method is called, the reader it guaranteed to be opened.
close 在接口中 AutoCloseableclose 在接口中 CloseableIOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.