@Internal public final class FileCopyFunction extends Object implements org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
| Constructor and Description |
|---|
FileCopyFunction(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.flink.configuration.Configuration parameters) |
void |
open(int taskNumber,
int numTasks) |
void |
writeRecord(org.apache.flink.core.fs.Path sourcePath) |
public FileCopyFunction(String path)
path - the destination path to copy filepublic void open(int taskNumber,
int numTasks)
throws IOException
open in interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>IOExceptionpublic void writeRecord(org.apache.flink.core.fs.Path sourcePath)
throws IOException
writeRecord in interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>IOExceptionpublic void configure(org.apache.flink.configuration.Configuration parameters)
configure in interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>public void close()
throws IOException
close in interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>IOExceptionCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.