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

public static class Types.MapType extends Type.ComplexType
The map type in Gravitino.
  • Method Details

    • valueNullable

      public static Types.MapType valueNullable(Type keyType, Type valueType)
      Create a new Types.MapType with 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.MapType instance.
    • valueNotNull

      public static Types.MapType valueNotNull(Type keyType, Type valueType)
      Create a new Types.MapType with 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.MapType instance.
    • of

      public static Types.MapType of(Type keyType, Type valueType, boolean valueNullable)
      Create a new Types.MapType with 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.MapType instance.
    • name

      public Type.Name name()
      Returns:
      The generic name of the type.
    • keyType

      public Type keyType()
      Returns:
      The key type of the map.
    • valueType

      public Type valueType()
      Returns:
      The value type of the map.
    • valueNullable

      public boolean valueNullable()
      Returns:
      Whether the value of the map is nullable.
    • simpleString

      public String simpleString()
      Returns:
      A readable string representation for the type.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object