@PublicEvolving public class DecoderBasedReader<T> extends Object implements RecordWiseFileCompactor.Reader<T>
RecordWiseFileCompactor.Reader implementation that reads the file as an FSDataInputStream and decodes the record with the DecoderBasedReader.Decoder.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
DecoderBasedReader.Decoder<T>
A
DecoderBasedReader.Decoder to decode the file content into the actual records. |
static class |
DecoderBasedReader.Factory<T>
Factory for
DecoderBasedReader. |
| 构造器和说明 |
|---|
DecoderBasedReader(org.apache.flink.core.fs.Path path,
DecoderBasedReader.Decoder<T> decoder) |
public DecoderBasedReader(org.apache.flink.core.fs.Path path,
DecoderBasedReader.Decoder<T> decoder)
throws IOException
IOExceptionpublic T read() throws IOException
read 在接口中 RecordWiseFileCompactor.Reader<T>IOExceptionpublic void close()
throws Exception
close 在接口中 AutoCloseableExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.