Class Types.UnionType

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

public static class Types.UnionType extends Type.ComplexType
The union type in Gravitino.
  • Method Details

    • of

      public static Types.UnionType of(Type... types)
      Create a new Types.UnionType with the given types.
      Parameters:
      types - The types of the union.
      Returns:
      A new Types.UnionType instance.
    • types

      public Type[] types()
      Returns:
      The types of the union.
    • 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