class IcebergRecordObjectInspector extends StructObjectInspector {

  public IcebergRecordObjectInspector(Types.StructType structType, List<ObjectInspector> objectInspectors) {
    Preconditions.checkArgument(structType.fields().size() == objectInspectors.size());

    this.structFields = Lists.newArrayListWithExpectedSize(structType.fields().size());

    int position = 0;

    for (Types.NestedField field : structType.fields()) {
      ObjectInspector oi = objectInspectors.get(position);
      IcebergRecordStructField structField = new IcebergRecordStructField(field, oi, position);
      structFields.add(structField);
      position++;
    }
  }

  public  IcebergRecordObjectInspector(Types.StructType structType, List<ObjectInspector> objectInspectors);

}