public class CalendarIntervalType extends DataType

The data type representing calendar intervals. The calendar interval is stored internally in three components: an integer value representing the number of months in this interval, an integer value representing the number of days in this interval, a long value representing the number of microseconds in this interval.

Please use the singleton DataTypes.CalendarIntervalType to refer the type.

Since:
1.5.0
Note:
Calendar intervals are not comparable.
  • Constructor Details

    • CalendarIntervalType

      public CalendarIntervalType()

  • Method Details

    • 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)
    • typeName

      Description copied from class: DataType

      Name of the type used in JSON serialization.

      Overrides:
      typeName in class DataType
    • equals

      public boolean equals(Object obj)

      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()

      Overrides:
      hashCode in class Object