public class SequenceFileOutputFormat<K,V> extends FileOutputFormat<K,V>
OutputFormat
that writes SequenceFile
s.FileOutputFormat.Counter
构造器和说明 |
---|
SequenceFileOutputFormat() |
限定符和类型 | 方法和说明 |
---|---|
static SequenceFile.CompressionType |
getOutputCompressionType(JobConf conf)
Get the
SequenceFile.CompressionType for the output SequenceFile . |
static SequenceFile.Reader[] |
getReaders(Configuration conf,
Path dir)
Open the output generated by this format.
|
RecordWriter<K,V> |
getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
Get the
RecordWriter for the given job. |
static void |
setOutputCompressionType(JobConf conf,
SequenceFile.CompressionType style)
Set the
SequenceFile.CompressionType for the output SequenceFile . |
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath
public RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormat
RecordWriter
for the given job.getRecordWriter
在接口中 OutputFormat<K,V>
getRecordWriter
在类中 FileOutputFormat<K,V>
job
- configuration for the job whose output is being written.name
- the unique name for this part of the output.progress
- mechanism for reporting progress while writing to file.RecordWriter
to write the output for the job.IOException
public static SequenceFile.Reader[] getReaders(Configuration conf, Path dir) throws IOException
IOException
public static SequenceFile.CompressionType getOutputCompressionType(JobConf conf)
SequenceFile.CompressionType
for the output SequenceFile
.conf
- the JobConf
SequenceFile.CompressionType
for the output SequenceFile
,
defaulting to SequenceFile.CompressionType.RECORD
public static void setOutputCompressionType(JobConf conf, SequenceFile.CompressionType style)
SequenceFile.CompressionType
for the output SequenceFile
.conf
- the JobConf
to modifystyle
- the SequenceFile.CompressionType
for the output
SequenceFile
Copyright © 2009 The Apache Software Foundation