Class DecoderBasedReader.Factory<T>
- java.lang.Object
-
- org.apache.flink.connector.file.sink.compactor.DecoderBasedReader.Factory<T>
-
- All Implemented Interfaces:
Serializable
,RecordWiseFileCompactor.Reader.Factory<T>
- Enclosing class:
- DecoderBasedReader<T>
public static class DecoderBasedReader.Factory<T> extends Object implements RecordWiseFileCompactor.Reader.Factory<T>
Factory forDecoderBasedReader
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Factory(DecoderBasedReader.Decoder.Factory<T> decoderFactory)
-
-
-
Constructor Detail
-
Factory
public Factory(DecoderBasedReader.Decoder.Factory<T> decoderFactory)
-
-
Method Detail
-
createFor
public DecoderBasedReader<T> createFor(Path path) throws IOException
- Specified by:
createFor
in interfaceRecordWiseFileCompactor.Reader.Factory<T>
- Returns:
- A reader that reads elements from the given file.
- Throws:
IOException
- Thrown if an I/O error occurs when opening the file.
-
-