Class RecordWiseFileCompactor<IN>
java.lang.Object
org.apache.flink.connector.file.sink.compactor.RecordWiseFileCompactor<IN>
- All Implemented Interfaces:
Serializable,FileCompactor
A
FileCompactor implementation that reads input files with a RecordWiseFileCompactor.Reader and writes
with a RecordWiseFileCompactor.Writer.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe reader that reads record from the compacting files.static interfaceThe writer that writers record into the compacting files. -
Constructor Summary
ConstructorsConstructorDescriptionRecordWiseFileCompactor(RecordWiseFileCompactor.Reader.Factory<IN> readerFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompact(List<org.apache.flink.core.fs.Path> inputFiles, RecordWiseFileCompactor.Writer<IN> writer)
-
Constructor Details
-
RecordWiseFileCompactor
-
-
Method Details
-
compact
public void compact(List<org.apache.flink.core.fs.Path> inputFiles, RecordWiseFileCompactor.Writer<IN> writer) throws Exception - Throws:
Exception
-