OrcLazyObjectInspectorUtils.createLazyObjectInspector(TypeInfoFactory.binaryTypeInfo);
OrcLazyBinary lazyBinary2 = (OrcLazyBinary) binaryOI.copyObject(lazyBinary);
Assert.assertEquals("a", new String(((BytesWritable) lazyBinary.materialize()).getBytes()));
Assert.assertEquals("a", new String(((BytesWritable) lazyBinary2.materialize()).getBytes()));
}
/**
* Tests that after copying a lazy boolean object, calling materialize on the original and the
* copy doesn't advance the tree reader twice