org.apache.hadoop.hbase.mapred
Class TableOutputFormat
java.lang.Object
org.apache.hadoop.mapred.OutputFormatBase
org.apache.hadoop.hbase.mapred.TableOutputFormat
- All Implemented Interfaces:
- OutputFormat
public class TableOutputFormat
- extends OutputFormatBase
Convert Map/Reduce output and write it to an HBase table
Field Summary |
static String |
OUTPUT_TABLE
JobConf parameter that specifies the output table |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OUTPUT_TABLE
public static final String OUTPUT_TABLE
- JobConf parameter that specifies the output table
- See Also:
- Constant Field Values
TableOutputFormat
public TableOutputFormat()
- constructor
getRecordWriter
public RecordWriter getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
throws IOException
- Description copied from interface:
OutputFormat
- Construct a
RecordWriter
with Progressable.
- Specified by:
getRecordWriter
in interface OutputFormat
- Specified by:
getRecordWriter
in class OutputFormatBase
job
- the job whose output is being writtenname
- the unique name for this part of the outputprogress
- mechanism for reporting progress while writing to file
- Returns:
- a
RecordWriter
- Throws:
IOException
checkOutputSpecs
public void checkOutputSpecs(FileSystem ignored,
JobConf job)
throws FileAlreadyExistsException,
InvalidJobConfException,
IOException
- Description copied from interface:
OutputFormat
- Check whether the output specification for a job is appropriate. Called
when 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.
- Specified by:
checkOutputSpecs
in interface OutputFormat
- Overrides:
checkOutputSpecs
in class OutputFormatBase
job
- the job whose output will be written
- Throws:
IOException
- when output should not be attempted
FileAlreadyExistsException
InvalidJobConfException
Copyright © 2006 The Apache Software Foundation