Assert.assertEquals(1, splits.length);
org.apache.hadoop.mapred.RecordReader<NullWritable, OrcStruct> rr =
inf.getRecordReader(splits[0], job, Reporter.NULL);
NullWritable key = rr.createKey();
OrcStruct value = rr.createValue();
for (int i = 0; i < records.length; i++) {
Assert.assertEquals(true, rr.next(key, value));
Assert.assertEquals(records[i], value.toString());
}
Assert.assertEquals(false, rr.next(key, value));
}