Class TextOutputFormat<T>

  • All Implemented Interfaces:
    Serializable, org.apache.flink.api.common.io.CleanupWhenUnsuccessful, org.apache.flink.api.common.io.InitializeOnMaster, org.apache.flink.api.common.io.OutputFormat<T>

    @Deprecated
    @PublicEvolving
    public class TextOutputFormat<T>
    extends org.apache.flink.api.common.io.FileOutputFormat<T>
    Deprecated.
    If you want to read/write data from/to text file, please use FLIP-27 FileSource and Sink-V2 FlinkSink. This class should be removed if we drop all supports for InputFormat and OutputFormat
    A FileOutputFormat that writes objects to a text file.

    Objects are converted to Strings using either Object.toString() or a TextOutputFormat.TextFormatter.

    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  TextOutputFormat.TextFormatter<IN>
      Deprecated.
      Formatter that transforms values into their String representations.
      • Nested classes/interfaces inherited from class org.apache.flink.api.common.io.FileOutputFormat

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

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

      • Fields inherited from class org.apache.flink.api.common.io.FileOutputFormat

        outputFilePath, stream
    • Constructor Summary

      Constructors 
      Constructor Description
      TextOutputFormat​(org.apache.flink.core.fs.Path outputPath)
      Deprecated.
       
      TextOutputFormat​(org.apache.flink.core.fs.Path outputPath, String charset)
      Deprecated.