Class TextOutputFormat<T>

java.lang.Object
org.apache.flink.api.common.io.RichOutputFormat<IT>
org.apache.flink.api.common.io.FileOutputFormat<T>
org.apache.flink.streaming.api.legacy.io.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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    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.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    void
    setCharsetName(String charsetName)
    Deprecated.
     
    Deprecated.
     
    void
    writeRecord(T record)
    Deprecated.
     

    Methods inherited from class org.apache.flink.api.common.io.FileOutputFormat

    close, configure, getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initDefaultsFromConfiguration, initializeGlobal, open, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnError

    Methods inherited from class org.apache.flink.api.common.io.RichOutputFormat

    getRuntimeContext, setRuntimeContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait