Package org.apache.gravitino.rel.types
Class Types.MapType
java.lang.Object
org.apache.gravitino.rel.types.Type.ComplexType
org.apache.gravitino.rel.types.Types.MapType
- All Implemented Interfaces:
Type
- Enclosing class:
- Types
The map type in Gravitino.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.rel.types.Type
Type.ComplexType, Type.DateTimeType, Type.FractionType, Type.IntegralType, Type.IntervalType, Type.Name, Type.NumericType, Type.PrimitiveType -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()keyType()name()static Types.MapTypeCreate a newTypes.MapTypewith the given key type, value type and whether the value is nullablestatic Types.MapTypevalueNotNull(Type keyType, Type valueType) Create a newTypes.MapTypewith the given key type, value type and the value is not nullable.booleanstatic Types.MapTypevalueNullable(Type keyType, Type valueType) Create a newTypes.MapTypewith the given key type, value type and the value is nullable.
-
Method Details
-
valueNullable
Create a newTypes.MapTypewith the given key type, value type and the value is nullable.- Parameters:
keyType- The key type of the map.valueType- The value type of the map.- Returns:
- A new
Types.MapTypeinstance.
-
valueNotNull
Create a newTypes.MapTypewith the given key type, value type and the value is not nullable.- Parameters:
keyType- The key type of the map.valueType- The value type of the map.- Returns:
- A new
Types.MapTypeinstance.
-
of
Create a newTypes.MapTypewith the given key type, value type and whether the value is nullable- Parameters:
keyType- The key type of the map.valueType- The value type of the map.valueNullable- Whether the value of the map is nullable.- Returns:
- A new
Types.MapTypeinstance.
-
name
- Returns:
- The generic name of the type.
-
keyType
- Returns:
- The key type of the map.
-
valueType
- Returns:
- The value type of the map.
-
valueNullable
public boolean valueNullable()- Returns:
- Whether the value of the map is nullable.
-
simpleString
- Returns:
- A readable string representation for the type.
-
equals
-
hashCode
public int hashCode()
-