org.apache.hcatalog.mapreduce
Class InitializeInput

java.lang.Object
  extended by org.apache.hcatalog.mapreduce.InitializeInput

public class InitializeInput
extends java.lang.Object

The Class which handles querying the metadata server using the MetaStoreClient. The list of partitions matching the partition filter is fetched from the server and the information is serialized and written into the JobContext configuration. The inputInfo is also updated with info required in the client process context.


Constructor Summary
InitializeInput()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitializeInput

public InitializeInput()
Method Detail

setInput

public static void setInput(org.apache.hadoop.mapreduce.Job job,
                            HCatTableInfo inputInfo)
                     throws java.lang.Exception
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 configuration object.

Parameters:
job - the job object
inputInfo - the hcat table input info
Throws:
java.lang.Exception