case class DayTimeIntervalType(startField: Byte, endField: Byte) extends AnsiIntervalType with Product with Serializable
The type represents day-time intervals of the SQL standard. A day-time interval is made up of a contiguous subset of the following fields:
- SECOND, seconds within minutes and possibly fractions of a second [0..59.999999],
- MINUTE, minutes within hours [0..59],
- HOUR, hours within days [0..23],
- DAY, days in the range [0..106751991].
DayTimeIntervalType
represents positive as well as negative day-time intervals.
- startField
The leftmost field which the type comprises of. Valid values: 0 (DAY), 1 (HOUR), 2 (MINUTE), 3 (SECOND).
- endField
The rightmost field which the type comprises of. Valid values: 0 (DAY), 1 (HOUR), 2 (MINUTE), 3 (SECOND).
- Annotations
- @Unstable()
- Source
- DayTimeIntervalType.scala
- Since
3.2.0
- Alphabetic
- By Inheritance
- DayTimeIntervalType
- Serializable
- Serializable
- Product
- Equals
- AnsiIntervalType
- AtomicType
- DataType
- AbstractDataType
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
DayTimeIntervalType(startField: Byte, endField: Byte)
- startField
The leftmost field which the type comprises of. Valid values: 0 (DAY), 1 (HOUR), 2 (MINUTE), 3 (SECOND).
- endField
The rightmost field which the type comprises of. Valid values: 0 (DAY), 1 (HOUR), 2 (MINUTE), 3 (SECOND).
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( ... ) @native()
-
def
defaultSize: Int
The day-time interval type has constant precision.
The day-time interval type has constant precision. A value of the type always occupies 8 bytes. The DAY field is constrained by the upper bound 106751991 to fit to
Long
.- Definition Classes
- DayTimeIntervalType → DataType
- val endField: Byte
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prettyJson: String
The pretty (i.e.
The pretty (i.e. indented) JSON representation of this data type.
- Definition Classes
- DataType
-
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
- DayTimeIntervalType → DataType
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()