public OrcLazyRowObjectInspector(int columnId, List<OrcProto.Type> types) {
OrcProto.Type type = types.get(columnId);
int fieldCount = type.getSubtypesCount();
for(int i=0; i < fieldCount; ++i) {
int fieldType = type.getSubtypes(i);
fields.add(new Field(type.getFieldNames(i),
OrcLazyObjectInspectorUtils.createLazyObjectInspector(fieldType, types), i));
}
}