Class 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:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FileSystemOutputFormat.Builder<T>
      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 Detail

      • 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