Class 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 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 interface org.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 interface org.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 interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
      • close

        public void close()
                   throws IOException
        Specified by:
        close in interface org.apache.flink.api.common.io.OutputFormat<org.apache.flink.core.fs.Path>
        Throws:
        IOException