Class InputFormatBasedReader<T>
java.lang.Object
org.apache.flink.connector.file.sink.compactor.InputFormatBasedReader<T>
- All Implemented Interfaces:
AutoCloseable,RecordWiseFileCompactor.Reader<T>
@PublicEvolving
public class InputFormatBasedReader<T>
extends Object
implements RecordWiseFileCompactor.Reader<T>
A
RecordWiseFileCompactor.Reader implementation that reads the file using the FileInputFormat.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionInputFormatBasedReader(org.apache.flink.core.fs.Path path, org.apache.flink.api.common.io.FileInputFormat<T> inputFormat) -
Method Summary
-
Constructor Details
-
InputFormatBasedReader
public InputFormatBasedReader(org.apache.flink.core.fs.Path path, org.apache.flink.api.common.io.FileInputFormat<T> inputFormat) throws IOException - Throws:
IOException
-
-
Method Details
-
read
- Specified by:
readin interfaceRecordWiseFileCompactor.Reader<T>- Returns:
- The next record, or null if no more available.
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-