public class SequenceFileAsBinaryOutputFormat extends SequenceFileOutputFormat<BytesWritable,BytesWritable>
OutputFormat that writes keys, values to
SequenceFiles in binary(raw) format| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
SequenceFileAsBinaryOutputFormat.WritableValueBytes
Inner class used for appendRaw
|
FileOutputFormat.Counter| 构造器和说明 |
|---|
SequenceFileAsBinaryOutputFormat() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkOutputSpecs(FileSystem ignored,
JobConf job)
Check for validity of the output-specification for the job.
|
RecordWriter<BytesWritable,BytesWritable> |
getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
Get the
RecordWriter for the given job. |
static Class<? extends WritableComparable> |
getSequenceFileOutputKeyClass(JobConf conf)
Get the key class for the
SequenceFile |
static Class<? extends Writable> |
getSequenceFileOutputValueClass(JobConf conf)
Get the value class for the
SequenceFile |
static void |
setSequenceFileOutputKeyClass(JobConf conf,
Class<?> theClass)
Set the key class for the
SequenceFile
This allows the user to specify the key class to be different
from the actual class (BytesWritable) used for writing |
static void |
setSequenceFileOutputValueClass(JobConf conf,
Class<?> theClass)
Set the value class for the
SequenceFile
This allows the user to specify the value class to be different
from the actual class (BytesWritable) used for writing |
getOutputCompressionType, getReaders, setOutputCompressionTypegetCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPathpublic static void setSequenceFileOutputKeyClass(JobConf conf, Class<?> theClass)
SequenceFile
This allows the user to specify the key class to be different
from the actual class (BytesWritable) used for writing
conf - the JobConf to modifytheClass - the SequenceFile output key class.public static void setSequenceFileOutputValueClass(JobConf conf, Class<?> theClass)
SequenceFile
This allows the user to specify the value class to be different
from the actual class (BytesWritable) used for writing
conf - the JobConf to modifytheClass - the SequenceFile output key class.public static Class<? extends WritableComparable> getSequenceFileOutputKeyClass(JobConf conf)
SequenceFileSequenceFilepublic static Class<? extends Writable> getSequenceFileOutputValueClass(JobConf conf)
SequenceFileSequenceFilepublic RecordWriter<BytesWritable,BytesWritable> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormatRecordWriter for the given job.getRecordWriter 在接口中 OutputFormat<BytesWritable,BytesWritable>getRecordWriter 在类中 SequenceFileOutputFormat<BytesWritable,BytesWritable>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.IOExceptionpublic void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException
OutputFormatThis is to validate the output specification for the job when it is a job is submitted. Typically checks that it does not already exist, throwing an exception when it already exists, so that output is not overwritten.
checkOutputSpecs 在接口中 OutputFormat<BytesWritable,BytesWritable>checkOutputSpecs 在类中 FileOutputFormat<BytesWritable,BytesWritable>job - job configuration.IOException - when output should not be attemptedCopyright © 2009 The Apache Software Foundation