Class OutputStreamBasedFileCompactor
- java.lang.Object
-
- org.apache.flink.connector.file.sink.compactor.OutputStreamBasedFileCompactor
-
- All Implemented Interfaces:
Serializable
,FileCompactor
- Direct Known Subclasses:
ConcatFileCompactor
@PublicEvolving public abstract class OutputStreamBasedFileCompactor extends Object implements FileCompactor
Base class forFileCompactor
implementations that write the compacting file by a output stream.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OutputStreamBasedFileCompactor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
compact(List<Path> inputFiles, OutputStream outputStream)
protected abstract void
doCompact(List<Path> inputFiles, OutputStream outputStream)
-
-
-
Method Detail
-
compact
public void compact(List<Path> inputFiles, OutputStream outputStream) throws Exception
- Throws:
Exception
-
doCompact
protected abstract void doCompact(List<Path> inputFiles, OutputStream outputStream) throws Exception
- Throws:
Exception
-
-