public static void setInput(Configuration conf,
                InputJobInfo theirInputJobInfo) throws Exception {
    InputJobInfo inputJobInfo = InputJobInfo.create(
      theirInputJobInfo.getDatabaseName(),
      theirInputJobInfo.getTableName(),
      theirInputJobInfo.getFilter(),
      theirInputJobInfo.getProperties());

    populateInputJobInfo(conf, inputJobInfo, null);
    HCatUtil.putInputJobInfoToConf(inputJobInfo, conf);
  }
Set the input to use for the Job. This queries the metadata server with the specified
partition predicates, gets the matching partitions, and puts the information in the job
configuration object.

To ensure a known InputJobInfo state, only the database name, table name, filter, and
properties are preserved. All other modification from the given InputJobInfo are discarded.

After calling setInput, InputJobInfo can be retrieved from the job configuration as follows:
{code}
LinkedList&lt;InputJobInfo&gt; inputInfo = (LinkedList&lt;InputJobInfo&gt;) HCatUtil
.deserialize(job.getConfiguration().get(HCatConstants.HCAT_KEY_JOB_INFO));
{code}

@param conf the job Configuration object
@param theirInputJobInfo information on the Input to read
@throws Exception
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/InitializeInput.java