Class FileCopyFunction
java.lang.Object
org.apache.flink.state.api.output.FileCopyFunction
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
@Internal
public final class FileCopyFunction
extends Object
implements org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
This output format copies files from an existing savepoint into a new directory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.OutputFormat
org.apache.flink.api.common.io.OutputFormat.InitializationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidconfigure(org.apache.flink.configuration.Configuration parameters) voidopen(org.apache.flink.api.common.io.OutputFormat.InitializationContext context) voidwriteRecord(org.apache.flink.core.fs.Path sourcePath)
-
Constructor Details
-
FileCopyFunction
- Parameters:
path- the destination path to copy file
-
-
Method Details
-
open
public void open(org.apache.flink.api.common.io.OutputFormat.InitializationContext context) throws IOException - Specified by:
openin interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>- Throws:
IOException
-
writeRecord
- Specified by:
writeRecordin interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>- Throws:
IOException
-
configure
public void configure(org.apache.flink.configuration.Configuration parameters) - Specified by:
configurein interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
-
close
- Specified by:
closein interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>- Throws:
IOException
-