} else {
assertEquals(expected.byte1.byteValue(),
((ByteWritable) ((OrcLazyByte) row.getFieldValue(1)).materialize()).get());
}
OrcLazyShort short1 = (OrcLazyShort) row.getFieldValue(2);
try
{
short s1 = short1.materializeShort();
assertEquals(expected.short1.shortValue(), s1);
}
catch(IOException e) {
assert(short1.nextIsNull());
assertNull(expected.short1);
}
OrcLazyInt int1 = (OrcLazyInt)row.getFieldValue(3);
if (int1.nextIsNull()) {
assertNull(expected.int1);
} else {
assertEquals(expected.int1.intValue(),
((IntWritable) int1.materialize()).get());
}
OrcLazyLong long1 = (OrcLazyLong)row.getFieldValue(4);
if (long1.nextIsNull()) {
assertNull(expected.long1);
} else {
assertEquals(expected.long1.longValue(),
((LongWritable) long1.materialize()).get());
}
OrcLazyShort short2 = (OrcLazyShort)row.getFieldValue(5);
if (short2.nextIsNull()) {
assertNull(expected.short2);
} else {
assertEquals(expected.short2.shortValue(),
((ShortWritable) short2.materialize()).get());
}
OrcLazyInt int2 = (OrcLazyInt) row.getFieldValue(6);
if (int2.nextIsNull()) {
assertNull(expected.int2);
} else {
assertEquals(expected.int2.intValue(),
((IntWritable) int2.materialize()).get());
}
OrcLazyLong long2 = (OrcLazyLong) row.getFieldValue(7);
if (long2.nextIsNull()) {
assertNull(expected.long2);
} else {
assertEquals(expected.long2.longValue(),
((LongWritable) long2.materialize()).get());
}
OrcLazyShort short3 = (OrcLazyShort)row.getFieldValue(8);
if (short3.nextIsNull()) {
assertNull(expected.short3);
} else {
assertEquals(expected.short3.shortValue(),
((ShortWritable) short3.materialize()).get());
}
OrcLazyInt int3 = (OrcLazyInt) row.getFieldValue(9);
if (int3.nextIsNull()) {
assertNull(expected.int3);