@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.| Modifier and Type | Class and Description |
|---|---|
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. |
| Constructor and Description |
|---|
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 in interface RecordWiseFileCompactor.Reader<T>IOExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.