ReaderWriterProfiler.setProfilerOptions(conf);
Reader reader = OrcFile.createReader(fs, testFilePath, conf);
assertEquals(COUNT, reader.getNumberOfRows());
RecordReader rows = reader.rows(null);
OrcLazyStruct lazyRow = null;
OrcStruct row = null;
for(int i = 0; i < COUNT; i++) {
rows.seekToRow(i);
lazyRow = (OrcLazyStruct) rows.next(lazyRow);
if (i % n == 0) {
row = (OrcStruct) lazyRow.materialize();
if (withoutNextIsNull) {
compareRowsWithoutNextIsNull(row, inputs, i, numNulls, true);
} else {
compareRows(row, inputs, i, numNulls, true);
}