public class TextOutputFormat<T> extends FileOutputFormat<T>
Modifier and Type | Class and Description |
---|---|
static interface |
TextOutputFormat.TextFormatter<IN> |
FileOutputFormat.AbstractConfigBuilder<T>, FileOutputFormat.ConfigBuilder, FileOutputFormat.OutputDirectoryMode
FILE_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, getDirectoryFileName, getOutputDirectoryMode, getOutputFilePath, getWriteMode, initializeGlobal, setOutputDirectoryMode, setOutputFilePath, setWriteMode, tryCleanupOnError
getRuntimeContext, setRuntimeContext
public 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>
IOException
public void writeRecord(T record) throws IOException
IOException
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.