Class InputFormatBasedReader.Factory<T>
- java.lang.Object
-
- org.apache.flink.connector.file.sink.compactor.InputFormatBasedReader.Factory<T>
-
- All Implemented Interfaces:
Serializable,RecordWiseFileCompactor.Reader.Factory<T>
- Enclosing class:
- InputFormatBasedReader<T>
public static class InputFormatBasedReader.Factory<T> extends Object implements RecordWiseFileCompactor.Reader.Factory<T>
Factory forInputFormatBasedReader.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Factory(org.apache.flink.util.function.SerializableSupplierWithException<org.apache.flink.api.common.io.FileInputFormat<T>,IOException> inputFormatFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputFormatBasedReader<T>createFor(org.apache.flink.core.fs.Path path)
-
-
-
Constructor Detail
-
Factory
public Factory(org.apache.flink.util.function.SerializableSupplierWithException<org.apache.flink.api.common.io.FileInputFormat<T>,IOException> inputFormatFactory)
-
-
Method Detail
-
createFor
public InputFormatBasedReader<T> createFor(org.apache.flink.core.fs.Path path) throws IOException
- Specified by:
createForin 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.
-
-