List<InputSplit> splits = hapi.getSplits(new JobContext(hiveConf, new JobID()));
LOG.info("Have {} splits to read", splits.size());
HiveTableDesc hiveTableDesc = new HiveTableDesc(args.inputTable.database,
args.inputTable.table);
HiveTableSchema schema = HiveTableSchemas.lookup(client, hiveConf,
hiveTableDesc);
chooseRowParser(schema);
Stats stats = Stats.create(hiveStats);
Context context = new Context(hapi, hiveConf, schema, hiveStats, stats);