|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.FileOutputFormat<K,V>
org.apache.hadoop.mapred.SequenceFileOutputFormat<K,V>
@InterfaceAudience.Public @InterfaceStability.Stable public class SequenceFileOutputFormat<K,V>
An OutputFormat that writes SequenceFiles.
| Constructor Summary | |
|---|---|
SequenceFileOutputFormat()
|
|
| Method Summary | |
|---|---|
static org.apache.hadoop.io.SequenceFile.CompressionType |
getOutputCompressionType(JobConf conf)
Get the SequenceFile.CompressionType for the output SequenceFile. |
static org.apache.hadoop.io.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,
org.apache.hadoop.io.SequenceFile.CompressionType style)
Set the SequenceFile.CompressionType for the output SequenceFile. |
| Methods inherited from class org.apache.hadoop.mapred.FileOutputFormat |
|---|
checkOutputSpecs, getCompressOutput, getOutputCompressorClass, getOutputPath, getPathForCustomFile, getTaskOutputPath, getUniqueName, getWorkOutputPath, setCompressOutput, setOutputCompressorClass, setOutputPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceFileOutputFormat()
| Method Detail |
|---|
public RecordWriter<K,V> getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
throws IOException
OutputFormatRecordWriter for the given job.
getRecordWriter in interface OutputFormat<K,V>getRecordWriter in class 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 org.apache.hadoop.io.SequenceFile.Reader[] getReaders(Configuration conf,
Path dir)
throws IOException
IOExceptionpublic static org.apache.hadoop.io.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,
org.apache.hadoop.io.SequenceFile.CompressionType style)
SequenceFile.CompressionType for the output SequenceFile.
conf - the JobConf to modifystyle - the SequenceFile.CompressionType for the output
SequenceFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||