|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.WritableComparable,HCatRecord>
org.apache.hcatalog.mapreduce.HCatBaseInputFormat
public abstract class HCatBaseInputFormat
Constructor Summary | |
---|---|
HCatBaseInputFormat()
|
Method Summary | |
---|---|
org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,HCatRecord> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext taskContext)
Create the RecordReader for the given InputSplit. |
static HCatSchema |
getOutputSchema(org.apache.hadoop.mapreduce.JobContext context)
get the schema for the HCatRecord data returned by HCatInputFormat. |
java.util.List<org.apache.hadoop.mapreduce.InputSplit> |
getSplits(org.apache.hadoop.mapreduce.JobContext jobContext)
Logically split the set of input files for the job. |
static HCatSchema |
getTableSchema(org.apache.hadoop.mapreduce.JobContext context)
Gets the HCatTable schema for the table specified in the HCatInputFormat.setInput call on the specified job context. |
static void |
setOutputSchema(org.apache.hadoop.mapreduce.Job job,
HCatSchema hcatSchema)
Set the schema for the HCatRecord data returned by HCatInputFormat. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HCatBaseInputFormat()
Method Detail |
---|
public static HCatSchema getOutputSchema(org.apache.hadoop.mapreduce.JobContext context) throws java.lang.Exception
context
- the jobContext
java.lang.IllegalArgumentException
java.lang.Exception
public static void setOutputSchema(org.apache.hadoop.mapreduce.Job job, HCatSchema hcatSchema) throws java.lang.Exception
job
- the job objecthcatSchema
- the schema to use as the consolidated schema
java.lang.Exception
public java.util.List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext jobContext) throws java.io.IOException, java.lang.InterruptedException
getSplits
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.WritableComparable,HCatRecord>
jobContext
- the job context object
java.io.IOException
- or InterruptedException
java.lang.InterruptedException
public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.WritableComparable,HCatRecord> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext taskContext) throws java.io.IOException, java.lang.InterruptedException
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.WritableComparable,HCatRecord>
split
- the splittaskContext
- the task attempt context
java.io.IOException
- or InterruptedException
java.lang.InterruptedException
public static HCatSchema getTableSchema(org.apache.hadoop.mapreduce.JobContext context) throws java.lang.Exception
context
- the context
java.lang.Exception
- if HCatInputFromat.setInput has not been called for the current context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |