}
writer.close();
Reader reader = OrcFile.createReader(fs, testFilePath, conf);
RecordReader rows = reader.rows(null);
OrcLazyStruct lazyRow = null;
OrcStruct row = null;
for (int i = 0; i < 1500; i ++) {
lazyRow = (OrcLazyStruct) rows.next(lazyRow);
row = (OrcStruct) lazyRow.materialize();
assertEquals(Integer.toString(i % 1000),
((Text) ((OrcLazyString) row.getFieldValue(0)).materialize()).toString());
}
rows.close();
}