public class MappingUtil
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static NameMapping | 
create(Schema schema)
Create a name-based mapping for a schema. 
 | 
static NameMapping | 
update(NameMapping mapping,
      java.util.Map<java.lang.Integer,Types.NestedField> updates,
      org.apache.iceberg.relocated.com.google.common.collect.Multimap<java.lang.Integer,Types.NestedField> adds)
Update a name-based mapping using changes to a schema. 
 | 
public static NameMapping create(Schema schema)
The mapping returned by this method will use the schema's name for each field.
schema - a SchemaNameMapping initialized with the schema's fields and namespublic static NameMapping update(NameMapping mapping, java.util.Map<java.lang.Integer,Types.NestedField> updates, org.apache.iceberg.relocated.com.google.common.collect.Multimap<java.lang.Integer,Types.NestedField> adds)
mapping - a name-based mappingupdates - a map from field ID to updated field definitionsadds - a map from parent field ID to nested fields to be added