Class ConcatFileCompactor
java.lang.Object
org.apache.flink.connector.file.sink.compactor.OutputStreamBasedFileCompactor
org.apache.flink.connector.file.sink.compactor.ConcatFileCompactor
- All Implemented Interfaces:
Serializable,FileCompactor
- Direct Known Subclasses:
IdenticalFileCompactor
A
OutputStreamBasedFileCompactor implementation that simply concat the compacting files.
The fileDelimiter will be added between neighbouring files if provided.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoCompact(List<org.apache.flink.core.fs.Path> inputFiles, OutputStream outputStream) Methods inherited from class org.apache.flink.connector.file.sink.compactor.OutputStreamBasedFileCompactor
compact
-
Constructor Details
-
ConcatFileCompactor
public ConcatFileCompactor() -
ConcatFileCompactor
public ConcatFileCompactor(@Nullable byte[] fileDelimiter)
-
-
Method Details
-
doCompact
protected void doCompact(List<org.apache.flink.core.fs.Path> inputFiles, OutputStream outputStream) throws Exception - Specified by:
doCompactin classOutputStreamBasedFileCompactor- Throws:
Exception
-