Package org.apache.iceberg.mapping
Class NameMapping
- java.lang.Object
-
- org.apache.iceberg.mapping.NameMapping
-
- All Implemented Interfaces:
java.io.Serializable
public class NameMapping extends java.lang.Object implements java.io.Serializable
Represents a mapping from external schema names to Iceberg type IDs.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MappedFields
asMappedFields()
MappedField
find(int id)
MappedField
find(java.lang.String... names)
MappedField
find(java.util.List<java.lang.String> names)
static NameMapping
of(java.util.List<MappedField> fields)
static NameMapping
of(MappedField... fields)
static NameMapping
of(MappedFields fields)
java.lang.String
toString()
-
-
-
Method Detail
-
of
public static NameMapping of(MappedField... fields)
-
of
public static NameMapping of(java.util.List<MappedField> fields)
-
of
public static NameMapping of(MappedFields fields)
-
find
public MappedField find(int id)
-
find
public MappedField find(java.lang.String... names)
-
find
public MappedField find(java.util.List<java.lang.String> names)
-
asMappedFields
public MappedFields asMappedFields()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-