|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable<?>,HCatRecord>
org.apache.hcatalog.mapreduce.HCatBaseOutputFormat
public abstract class HCatBaseOutputFormat
Constructor Summary | |
---|---|
HCatBaseOutputFormat()
|
Method Summary | |
---|---|
void |
checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context)
Check for validity of the output-specification for the job. |
static org.apache.hcatalog.mapreduce.OutputJobInfo |
getJobInfo(org.apache.hadoop.mapreduce.JobContext jobContext)
Gets the HCatOuputJobInfo object by reading the Configuration and deserializing the string. |
protected static HCatOutputStorageDriver |
getOutputDriverInstance(org.apache.hadoop.mapreduce.JobContext context,
org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo,
java.util.Map<java.lang.String,java.lang.String> fullPartSpec)
Gets the output storage driver instance, with allowing specification of partvals from which it picks the dynamic partvals |
protected org.apache.hadoop.mapreduce.OutputFormat<? super org.apache.hadoop.io.WritableComparable<?>,? super org.apache.hadoop.io.Writable> |
getOutputFormat(org.apache.hadoop.mapreduce.JobContext context)
Gets the output format instance. |
static HCatSchema |
getTableSchema(org.apache.hadoop.mapreduce.JobContext context)
Gets the table schema for the table specified in the HCatOutputFormat.setOutput call on the specified job context. |
protected static void |
setPartDetails(org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo,
HCatSchema schema,
java.util.Map<java.lang.String,java.lang.String> partMap)
|
Methods inherited from class org.apache.hadoop.mapreduce.OutputFormat |
---|
getOutputCommitter, getRecordWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HCatBaseOutputFormat()
Method Detail |
---|
public static HCatSchema getTableSchema(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
context
- the context
java.io.IOException
- if HCatOutputFromat.setOutput has not been called for the passed contextpublic void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException, java.lang.InterruptedException
checkOutputSpecs
in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable<?>,HCatRecord>
context
- information about the job
java.io.IOException
- when output should not be attempted
java.lang.InterruptedException
protected org.apache.hadoop.mapreduce.OutputFormat<? super org.apache.hadoop.io.WritableComparable<?>,? super org.apache.hadoop.io.Writable> getOutputFormat(org.apache.hadoop.mapreduce.JobContext context) throws java.io.IOException
context
- the job context
java.io.IOException
public static org.apache.hcatalog.mapreduce.OutputJobInfo getJobInfo(org.apache.hadoop.mapreduce.JobContext jobContext) throws java.io.IOException
jobContext
- the job context
java.io.IOException
- the IO exceptionprotected static HCatOutputStorageDriver getOutputDriverInstance(org.apache.hadoop.mapreduce.JobContext context, org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo, java.util.Map<java.lang.String,java.lang.String> fullPartSpec) throws java.io.IOException
context
- the job contextjobInfo
- the output job info
java.io.IOException
protected static void setPartDetails(org.apache.hcatalog.mapreduce.OutputJobInfo jobInfo, HCatSchema schema, java.util.Map<java.lang.String,java.lang.String> partMap) throws HCatException, java.io.IOException
HCatException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |