List<Types.NestedField> convertInternal(List<String> names, List<TypeInfo> typeInfos, List<String> comments) {
    List<Types.NestedField> result = Lists.newArrayListWithExpectedSize(names.size());
    int outerId = id + names.size();
    id = outerId;
    for (int i = 0; i < names.size(); ++i) {
      result.add(Types.NestedField.optional(outerId - names.size() + i, names.get(i), convertType(typeInfos.get(i)),
          comments.isEmpty() || i >= comments.size() ? null : comments.get(i)));
    }

    return result;
  }
Package private class for converting Hive schema to Iceberg schema. Should be used only by the HiveSchemaUtil.
Use {@link HiveSchemaUtil} for conversion purposes.
iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveSchemaConverter.java