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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FileCopyFunction

      public FileCopyFunction(String path)
      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:
      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