|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.OutputFormatBase
org.apache.hadoop.mapred.MapFileOutputFormat
public class MapFileOutputFormat
An OutputFormat
that writes MapFile
s.
Constructor Summary | |
---|---|
MapFileOutputFormat()
|
Method Summary | |
---|---|
static Writable |
getEntry(MapFile.Reader[] readers,
Partitioner partitioner,
WritableComparable key,
Writable value)
Get an entry from output generated by this class. |
static MapFile.Reader[] |
getReaders(FileSystem fs,
File dir,
Configuration conf)
Deprecated. Call getReaders(FileSystem, Path, Configuration) . |
static MapFile.Reader[] |
getReaders(FileSystem fs,
Path dir,
Configuration conf)
Open the output generated by this format. |
RecordWriter |
getRecordWriter(FileSystem fs,
JobConf job,
String name,
Progressable progress)
Construct a RecordWriter with Progressable. |
Methods inherited from class org.apache.hadoop.mapred.OutputFormatBase |
---|
checkOutputSpecs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapFileOutputFormat()
Method Detail |
---|
public RecordWriter getRecordWriter(FileSystem fs, JobConf job, String name, Progressable progress) throws IOException
OutputFormat
RecordWriter
with Progressable.
getRecordWriter
in interface OutputFormat
getRecordWriter
in class OutputFormatBase
fs
- the file system to write tojob
- the job whose output is being writtenname
- the unique name for this part of the outputprogress
- mechanism for reporting progress while writing to file
RecordWriter
IOException
public static MapFile.Reader[] getReaders(FileSystem fs, File dir, Configuration conf) throws IOException
getReaders(FileSystem, Path, Configuration)
.
IOException
public static MapFile.Reader[] getReaders(FileSystem fs, Path dir, Configuration conf) throws IOException
IOException
public static Writable getEntry(MapFile.Reader[] readers, Partitioner partitioner, WritableComparable key, Writable value) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |