*
* @param metastoreHostPort metastore location info
* @return HiveInputDescription
*/
private HiveInputDescription initInput(HostPort metastoreHostPort) {
HiveInputDescription inputDesc = new HiveInputDescription();
inputDesc.getTableDesc().setDatabaseName(args.inputTable.database);
inputDesc.getTableDesc().setTableName(args.inputTable.table);
inputDesc.setPartitionFilter(args.inputTable.partitionFilter);
args.splits.compute(args.multiThread.threads);
inputDesc.setNumSplits(args.splits.requestNumSplits);
inputDesc.getMetastoreDesc().setHost(metastoreHostPort.host);
inputDesc.getMetastoreDesc().setPort(metastoreHostPort.port);
return inputDesc;
}