Class TextOutputFormat<K,V>
java.lang.Object
org.apache.hadoop.mapreduce.OutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.FileOutputFormat<K,V>
org.apache.hadoop.mapreduce.lib.output.TextOutputFormat<K,V>
An
OutputFormat that writes plain text files.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classorg.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter<K,V> Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
FileOutputFormat.Counter -
Field Summary
FieldsFields inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
BASE_OUTPUT_NAME, COMPRESS, COMPRESS_CODEC, COMPRESS_TYPE, OUTDIR, PART -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
-
Field Details
-
SEPARATOR
-
SEPERATOR
Deprecated.UseSEPARATOR
-
-
Constructor Details
-
TextOutputFormat
public TextOutputFormat()
-
-
Method Details
-
getRecordWriter
public RecordWriter<K,V> getRecordWriter(TaskAttemptContext job) throws IOException, InterruptedException Description copied from class:OutputFormatGet theRecordWriterfor the given task.- Specified by:
getRecordWriterin classFileOutputFormat<K,V> - Parameters:
job- the information about the current task.- Returns:
- a
RecordWriterto write the output for the job. - Throws:
IOExceptionInterruptedException
-
SEPARATOR