org.apache.hcatalog.mapreduce
Class HCatInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.WritableComparable,HCatRecord>
      extended by org.apache.hcatalog.mapreduce.HCatBaseInputFormat
          extended by org.apache.hcatalog.mapreduce.HCatInputFormat

public class HCatInputFormat
extends HCatBaseInputFormat

The InputFormat to use to read data from HCat


Constructor Summary
HCatInputFormat()
           
 
Method Summary
static void setInput(org.apache.hadoop.mapreduce.Job job, HCatTableInfo inputInfo)
          Set the input to use for the Job.
 
Methods inherited from class org.apache.hcatalog.mapreduce.HCatBaseInputFormat
createRecordReader, getOutputSchema, getSplits, getTableSchema, setOutputSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HCatInputFormat

public HCatInputFormat()
Method Detail

setInput

public static void setInput(org.apache.hadoop.mapreduce.Job job,
                            HCatTableInfo inputInfo)
                     throws java.io.IOException
Set the input to use for the Job. This queries the metadata server with the specified partition predicates, gets the matching partitions, puts the information in the conf object. The inputInfo object is updated with information needed in the client context

Parameters:
job - the job object
inputInfo - the table input info
Throws:
java.io.IOException - the exception in communicating with the metadata server