Package org.apache.iceberg.mapping
Class MappedField
- java.lang.Object
-
- org.apache.iceberg.mapping.MappedField
-
- All Implemented Interfaces:
java.io.Serializable
public class MappedField extends java.lang.Object implements java.io.Serializable
An immutable mapping between a field ID and a set of names.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
hashCode()
java.lang.Integer
id()
java.util.Set<java.lang.String>
names()
MappedFields
nestedMapping()
static MappedField
of(java.lang.Integer id, java.lang.Iterable<java.lang.String> names)
static MappedField
of(java.lang.Integer id, java.lang.Iterable<java.lang.String> names, MappedFields nestedMapping)
static MappedField
of(java.lang.Integer id, java.lang.String name)
static MappedField
of(java.lang.Integer id, java.lang.String name, MappedFields nestedMapping)
java.lang.String
toString()
-
-
-
Method Detail
-
of
public static MappedField of(java.lang.Integer id, java.lang.String name)
-
of
public static MappedField of(java.lang.Integer id, java.lang.Iterable<java.lang.String> names)
-
of
public static MappedField of(java.lang.Integer id, java.lang.String name, MappedFields nestedMapping)
-
of
public static MappedField of(java.lang.Integer id, java.lang.Iterable<java.lang.String> names, MappedFields nestedMapping)
-
id
public java.lang.Integer id()
-
names
public java.util.Set<java.lang.String> names()
-
nestedMapping
public MappedFields nestedMapping()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-