public class SequenceFileOutputFormat<K,V> extends FileOutputFormat<K,V>
OutputFormat
that writes SequenceFile
s.FileOutputFormat.Counter
BASE_OUTPUT_NAME, PART
构造器和说明 |
---|
SequenceFileOutputFormat() |
限定符和类型 | 方法和说明 |
---|---|
static SequenceFile.CompressionType |
getOutputCompressionType(JobContext job)
Get the
SequenceFile.CompressionType for the output SequenceFile . |
RecordWriter<K,V> |
getRecordWriter(TaskAttemptContext context)
Get the
RecordWriter for the given task. |
static void |
setOutputCompressionType(Job job,
SequenceFile.CompressionType style)
Set the
SequenceFile.CompressionType for the output SequenceFile . |
checkOutputSpecs, getCompressOutput, getDefaultWorkFile, getOutputCommitter, getOutputCompressorClass, getOutputName, getOutputPath, getPathForWorkFile, getUniqueFile, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputName, setOutputPath
public RecordWriter<K,V> getRecordWriter(TaskAttemptContext context) throws IOException, InterruptedException
OutputFormat
RecordWriter
for the given task.getRecordWriter
在类中 FileOutputFormat<K,V>
context
- the information about the current task.RecordWriter
to write the output for the job.IOException
InterruptedException
public static SequenceFile.CompressionType getOutputCompressionType(JobContext job)
SequenceFile.CompressionType
for the output SequenceFile
.job
- the Job
SequenceFile.CompressionType
for the output SequenceFile
,
defaulting to SequenceFile.CompressionType.RECORD
public static void setOutputCompressionType(Job job, SequenceFile.CompressionType style)
SequenceFile.CompressionType
for the output SequenceFile
.job
- the Job
to modifystyle
- the SequenceFile.CompressionType
for the output
SequenceFile
Copyright © 2009 The Apache Software Foundation