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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileCopyFunction(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(org.apache.flink.configuration.Configuration parameters)
void
open(org.apache.flink.api.common.io.OutputFormat.InitializationContext context)
void
writeRecord(org.apache.flink.core.fs.Path sourcePath)
-
-
-
Constructor Detail
-
FileCopyFunction
public FileCopyFunction(String path)
- Parameters:
path
- the destination path to copy file
-
-
Method Detail
-
open
public void open(org.apache.flink.api.common.io.OutputFormat.InitializationContext context) throws IOException
- Specified by:
open
in interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
- Throws:
IOException
-
writeRecord
public void writeRecord(org.apache.flink.core.fs.Path sourcePath) throws IOException
- Specified by:
writeRecord
in 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:
configure
in interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceorg.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
- Throws:
IOException
-
-