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 forInputFormatandOutputFormatAFileOutputFormatthat writes objects to a text file.Objects are converted to Strings using either
Object.toString()or aTextOutputFormat.TextFormatter.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTextOutputFormat.TextFormatter<IN>Deprecated.Formatter that transforms values into theirStringrepresentations.
-
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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCharsetName()Deprecated.voidsetCharsetName(String charsetName)Deprecated.StringtoString()Deprecated.voidwriteRecord(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
-
-
-
-
Constructor Detail
-
TextOutputFormat
public TextOutputFormat(org.apache.flink.core.fs.Path outputPath)
Deprecated.
-
TextOutputFormat
public TextOutputFormat(org.apache.flink.core.fs.Path outputPath, String charset)Deprecated.
-
-
Method Detail
-
getCharsetName
public String getCharsetName()
Deprecated.
-
setCharsetName
public void setCharsetName(String charsetName) throws IllegalCharsetNameException, UnsupportedCharsetException
Deprecated.
-
writeRecord
public void writeRecord(T record) throws IOException
Deprecated.- Throws:
IOException
-
-