RecordReader<WritableComparable, HiveReadableRecord> recordReader;
recordReader = context.hiveApiInputFormat.createRecordReader(split, taskContext);
recordReader.initialize(split, taskContext);
String[] values = new String[context.schema.numColumns()];
while (recordReader.nextKeyValue()) {
HiveReadableRecord record = recordReader.getCurrentValue();
printRecord(record, context.schema.numColumns(), context.opts, values);
++numRows;
if (numRows % context.opts.metricsUpdatePeriodRows == 0) {
context.stats.addRows(context.hiveStats, context.opts.metricsUpdatePeriodRows);
}