assertEquals(true, rows1.hasNext());
assertEquals(true, rows2.hasNext());
row1 = (OrcLazyStruct) rows1.next(row1);
row2 = (OrcLazyStruct) rows2.next(row2);
assertEquals(r1.nextInt(), ((IntWritable) ((OrcLazyInt) ((OrcStruct) row1.materialize()).getFieldValue(0)).materialize()).get());
assertEquals(Long.toHexString(r2.nextLong()),
((OrcLazyString) ((OrcStruct) row2.materialize()).getFieldValue(1)).materialize().toString());
}
assertEquals(false, rows1.hasNext());
assertEquals(false, rows2.hasNext());
rows1.close();