Package org.apache.gravitino.rel.types
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
The list 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 TypeMethodDescriptionbooleanbooleaninthashCode()name()static Types.ListTypeCreate a newTypes.ListTypewith the given element type.static Types.ListTypeCreate a newTypes.ListTypewith the given element type and the type is nullable.static Types.ListTypeCreate a newTypes.ListTypewith the given element type and whether the element is nullable.
-
Method Details
-
nullable
Create a newTypes.ListTypewith the given element type and the type is nullable.- Parameters:
elementType- The element type of the list.- Returns:
- A new
Types.ListTypeinstance.
-
notNull
Create a newTypes.ListTypewith the given element type.- Parameters:
elementType- The element type of the list.- Returns:
- A new
Types.ListTypeinstance.
-
of
Create a newTypes.ListTypewith 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.ListTypeinstance.
-
elementType
- Returns:
- The element type of the list.
-
elementNullable
public boolean elementNullable()- Returns:
- Whether the element of the list is nullable.
-
name
- Returns:
- The generic name of the type.
-
simpleString
- Returns:
- A readable string representation for the type.
-
equals
-
hashCode
public int hashCode()
-