Package org.apache.flink.api.java.io
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.api.java.io.TextOutputFormat<T>
-
- Type Parameters:
T- type of elements
- 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.All Flink DataSet APIs are deprecated since Flink 1.18 and will be removed in a future Flink major version. You can still build your application in DataSet, but you should move to either the DataStream and/or Table API.AFileOutputFormatthat writes objects to a text file.Objects are converted to Strings using either
Object.toString()or aTextOutputFormat.TextFormatter.
-
-
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.voidopen(int taskNumber, int numTasks)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, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnError
-
Methods inherited from class org.apache.flink.api.common.io.RichOutputFormat
getRuntimeContext, setRuntimeContext
-
-
-
-
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.
-
open
public void open(int taskNumber, int numTasks) throws IOExceptionDeprecated.- Specified by:
openin interfaceorg.apache.flink.api.common.io.OutputFormat<T>- Overrides:
openin classorg.apache.flink.api.common.io.FileOutputFormat<T>- Throws:
IOException
-
writeRecord
public void writeRecord(T record) throws IOException
Deprecated.- Throws:
IOException
-
-