public class VariantType extends DataType

The data type representing semi-structured values with arbitrary hierarchical data structures. It is intended to store parsed JSON values and most other data types in the system (e.g., it cannot store a map with a non-string key type).

Since:
4.0.0
  • Constructor Details

    • VariantType

      public VariantType()

  • Method Details

    • typeName

      public static String typeName()

    • json

      public static String json()

    • prettyJson

      public static String prettyJson()

    • simpleString

      public static String simpleString()

    • catalogString

      public static String catalogString()

    • sql

      public static String sql()

    • canEqual

      public abstract static boolean canEqual(Object that)

    • productArity

      public abstract static int productArity()

    • productElement

      public abstract static Object productElement(int n)

    • productIterator

      public static scala.collection.Iterator<Object> productIterator()

    • productPrefix

      public static String productPrefix()

    • productElementName

      public static String productElementName(int n)

    • productElementNames

      public static scala.collection.Iterator<String> productElementNames()

    • defaultSize

      public int defaultSize()

      Description copied from class: DataType

      The default size of a value of this data type, used internally for size estimation.

      Specified by:
      defaultSize in class DataType
      Returns:
      (undocumented)
    • equals

      public boolean equals(Object obj)

      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()

      Overrides:
      hashCode in class Object