Package org.apache.iceberg.types
Class Types.MapType
- java.lang.Object
-
- org.apache.iceberg.types.Type.NestedType
-
- org.apache.iceberg.types.Types.MapType
-
- All Implemented Interfaces:
java.io.Serializable
,Type
- Enclosing class:
- Types
public static class Types.MapType extends Type.NestedType
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iceberg.types.Type
Type.NestedType, Type.PrimitiveType, Type.TypeID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Types.MapType
asMapType()
boolean
equals(java.lang.Object o)
Types.NestedField
field(int id)
java.util.List<Types.NestedField>
fields()
Type
fieldType(java.lang.String name)
int
hashCode()
boolean
isMapType()
boolean
isValueOptional()
boolean
isValueRequired()
int
keyId()
Type
keyType()
static Types.MapType
ofOptional(int keyId, int valueId, Type keyType, Type valueType)
static Types.MapType
ofRequired(int keyId, int valueId, Type keyType, Type valueType)
java.lang.String
toString()
Type.TypeID
typeId()
int
valueId()
Type
valueType()
-
Methods inherited from class org.apache.iceberg.types.Type.NestedType
asNestedType, isNestedType
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.types.Type
asListType, asPrimitiveType, asStructType, isListType, isPrimitiveType, isStructType
-
-
-
-
Method Detail
-
ofOptional
public static Types.MapType ofOptional(int keyId, int valueId, Type keyType, Type valueType)
-
ofRequired
public static Types.MapType ofRequired(int keyId, int valueId, Type keyType, Type valueType)
-
keyType
public Type keyType()
-
valueType
public Type valueType()
-
fieldType
public Type fieldType(java.lang.String name)
- Specified by:
fieldType
in classType.NestedType
-
field
public Types.NestedField field(int id)
- Specified by:
field
in classType.NestedType
-
fields
public java.util.List<Types.NestedField> fields()
- Specified by:
fields
in classType.NestedType
-
keyId
public int keyId()
-
valueId
public int valueId()
-
isValueRequired
public boolean isValueRequired()
-
isValueOptional
public boolean isValueOptional()
-
typeId
public Type.TypeID typeId()
-
isMapType
public boolean isMapType()
-
asMapType
public Types.MapType asMapType()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-