case class YearMonthIntervalType(startField: Byte, endField: Byte) extends AnsiIntervalType with Product with Serializable
The type represents year-month intervals of the SQL standard. A year-month interval is made up of a contiguous subset of the following fields:
- MONTH, months within years [0..11],
- YEAR, years in the range [0..178956970].
YearMonthIntervalType
represents positive as well as negative year-month intervals.
- startField
The leftmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH).
- endField
The rightmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH).
- Annotations
- @Unstable()
- Source
- YearMonthIntervalType.scala
- Since
3.2.0
- Alphabetic
- By Inheritance
- YearMonthIntervalType
- Serializable
- Product
- Equals
- AnsiIntervalType
- AtomicType
- DataType
- AbstractDataType
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new YearMonthIntervalType(startField: Byte, endField: Byte)
- startField
The leftmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH).
- endField
The rightmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH).
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def catalogString: String
String representation for the type saved in external catalogs.
String representation for the type saved in external catalogs.
- Definition Classes
- DataType
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def defaultSize: Int
Year-month interval values always occupy 4 bytes.
Year-month interval values always occupy 4 bytes. The YEAR field is constrained by the upper bound 178956970 to fit to
Int
.- Definition Classes
- YearMonthIntervalType → DataType
- val endField: Byte
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def json: String
The compact JSON representation of this data type.
The compact JSON representation of this data type.
- Definition Classes
- DataType
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def prettyJson: String
The pretty (i.e.
The pretty (i.e. indented) JSON representation of this data type.
- Definition Classes
- DataType
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def simpleString: String
Readable string representation for the type.
Readable string representation for the type.
- Definition Classes
- DataType → AbstractDataType
- def sql: String
- Definition Classes
- DataType
- val startField: Byte
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val typeName: String
Name of the type used in JSON serialization.
Name of the type used in JSON serialization.
- Definition Classes
- YearMonthIntervalType → DataType
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)