T - type of elements@Deprecated @PublicEvolving public class TextOutputFormat<T> extends org.apache.flink.api.common.io.FileOutputFormat<T>
FileOutputFormat that writes objects to a text file.
Objects are converted to Strings using either Object.toString() or a TextOutputFormat.TextFormatter.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextOutputFormat.TextFormatter<IN>
Deprecated.
Formatter that transforms values into their
String representations. |
| Constructor and Description |
|---|
TextOutputFormat(org.apache.flink.core.fs.Path outputPath)
Deprecated.
|
TextOutputFormat(org.apache.flink.core.fs.Path outputPath,
String charset)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCharsetName()
Deprecated.
|
void |
open(int taskNumber,
int numTasks)
Deprecated.
|
void |
setCharsetName(String charsetName)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeRecord(T record)
Deprecated.
|
close, configure, getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initDefaultsFromConfiguration, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnErrorgetRuntimeContext, setRuntimeContextpublic TextOutputFormat(org.apache.flink.core.fs.Path outputPath)
public TextOutputFormat(org.apache.flink.core.fs.Path outputPath,
String charset)
public String getCharsetName()
public void setCharsetName(String charsetName) throws IllegalCharsetNameException, UnsupportedCharsetException
public void open(int taskNumber,
int numTasks)
throws IOException
open in interface org.apache.flink.api.common.io.OutputFormat<T>open in class org.apache.flink.api.common.io.FileOutputFormat<T>IOExceptionpublic void writeRecord(T record) throws IOException
IOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.