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.
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
TextOutputFormat.TextFormatter<IN>
已过时。
Formatter that transforms values into their
String representations. |
| 构造器和说明 |
|---|
TextOutputFormat(org.apache.flink.core.fs.Path outputPath)
已过时。
|
TextOutputFormat(org.apache.flink.core.fs.Path outputPath,
String charset)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCharsetName()
已过时。
|
void |
open(int taskNumber,
int numTasks)
已过时。
|
void |
setCharsetName(String charsetName)
已过时。
|
String |
toString()
已过时。
|
void |
writeRecord(T record)
已过时。
|
close, configure, getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initDefaultsFromConfiguration, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnErrorpublic 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 在接口中 org.apache.flink.api.common.io.OutputFormat<T>open 在类中 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.