public class TextOutputFormat<T> extends FileOutputFormat<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextOutputFormat.TextFormatter<IN> |
FileOutputFormat.AbstractConfigBuilder<T>, FileOutputFormat.ConfigBuilder, FileOutputFormat.OutputDirectoryModeFILE_PARAMETER_KEY, outputFilePath, stream| Constructor and Description |
|---|
TextOutputFormat(Path outputPath) |
TextOutputFormat(Path outputPath,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharsetName() |
void |
open(int taskNumber,
int numTasks) |
void |
setCharsetName(String charsetName) |
String |
toString() |
void |
writeRecord(T record) |
close, configure, configureFileFormat, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnErrorpublic TextOutputFormat(Path outputPath)
public String getCharsetName()
public void setCharsetName(String charsetName) throws IllegalCharsetNameException, UnsupportedCharsetException
public void open(int taskNumber,
int numTasks)
throws IOException
open in interface OutputFormat<T>open in class FileOutputFormat<T>IOExceptionpublic void writeRecord(T record) throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.