Package org.apache.spark.sql.types
Class CalendarIntervalType
Object
org.apache.spark.sql.types.DataType
org.apache.spark.sql.types.CalendarIntervalType
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract static boolean
static String
int
The default size of a value of this data type, used internally for size estimation.abstract static boolean
static String
json()
static String
abstract static int
abstract static Object
productElement
(int n) static scala.collection.Iterator<Object>
static String
static String
static String
sql()
typeName()
Name of the type used in JSON serialization.Methods inherited from class org.apache.spark.sql.types.DataType
catalogString, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql
-
Constructor Details
-
CalendarIntervalType
public CalendarIntervalType()
-
-
Method Details
-
json
-
prettyJson
-
simpleString
-
catalogString
-
sql
-
canEqual
-
equals
-
productElement
-
productArity
public abstract static int productArity() -
productIterator
-
productPrefix
-
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 classDataType
- Returns:
- (undocumented)
-
typeName
Description copied from class:DataType
Name of the type used in JSON serialization.
-