@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(Path path,
DecoderBasedReader.Decoder<T> decoder) |
public DecoderBasedReader(Path path, DecoderBasedReader.Decoder<T> decoder) throws IOException
IOException
public T read() throws IOException
read
in interface RecordWiseFileCompactor.Reader<T>
IOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.