Class Types.ListType

java.lang.Object
org.apache.gravitino.rel.types.Type.ComplexType
org.apache.gravitino.rel.types.Types.ListType
All Implemented Interfaces:
Type
Enclosing class:
Types

public static class Types.ListType extends Type.ComplexType
The list type in Gravitino.
  • Method Details

    • nullable

      public static Types.ListType nullable(Type elementType)
      Create a new Types.ListType with the given element type and the type is nullable.
      Parameters:
      elementType - The element type of the list.
      Returns:
      A new Types.ListType instance.
    • notNull

      public static Types.ListType notNull(Type elementType)
      Create a new Types.ListType with the given element type.
      Parameters:
      elementType - The element type of the list.
      Returns:
      A new Types.ListType instance.
    • of

      public static Types.ListType of(Type elementType, boolean elementNullable)
      Create a new Types.ListType with the given element type and whether the element is nullable.
      Parameters:
      elementType - The element type of the list.
      elementNullable - Whether the element of the list is nullable.
      Returns:
      A new Types.ListType instance.
    • elementType

      public Type elementType()
      Returns:
      The element type of the list.
    • elementNullable

      public boolean elementNullable()
      Returns:
      Whether the element of the list is nullable.
    • name

      public Type.Name name()
      Returns:
      The generic name of the type.
    • 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