Class FileSystemOutputFormat<T>

java.lang.Object
org.apache.flink.connector.file.table.FileSystemOutputFormat<T>
Type Parameters:
T - The type of the consumed records.
All Implemented Interfaces:
Serializable, org.apache.flink.api.common.io.FinalizeOnMaster, org.apache.flink.api.common.io.OutputFormat<T>, org.apache.flink.api.common.SupportsConcurrentExecutionAttempts

@Internal public class FileSystemOutputFormat<T> extends Object implements org.apache.flink.api.common.io.OutputFormat<T>, org.apache.flink.api.common.io.FinalizeOnMaster, Serializable, org.apache.flink.api.common.SupportsConcurrentExecutionAttempts
File system OutputFormat for batch job. It commits in finalizeGlobal(FinalizationContext).
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder to build FileSystemOutputFormat.

    Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.FinalizeOnMaster

    org.apache.flink.api.common.io.FinalizeOnMaster.FinalizationContext

    Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.OutputFormat

    org.apache.flink.api.common.io.OutputFormat.InitializationContext
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    configure(org.apache.flink.configuration.Configuration parameters)
     
    void
    finalizeGlobal(org.apache.flink.api.common.io.FinalizeOnMaster.FinalizationContext context)
     
    void
    open(org.apache.flink.api.common.io.OutputFormat.InitializationContext context)
     
    void
    writeRecord(T record)
     

    Methods inherited from class java.lang.Object

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

    • finalizeGlobal

      public void finalizeGlobal(org.apache.flink.api.common.io.FinalizeOnMaster.FinalizationContext context)
      Specified by:
      finalizeGlobal in interface org.apache.flink.api.common.io.FinalizeOnMaster
    • configure

      public void configure(org.apache.flink.configuration.Configuration parameters)
      Specified by:
      configure in interface org.apache.flink.api.common.io.OutputFormat<T>
    • 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<T>
      Throws:
      IOException
    • writeRecord

      public void writeRecord(T record)
      Specified by:
      writeRecord in interface org.apache.flink.api.common.io.OutputFormat<T>
    • close

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