Serializable
, scala.Equals
, scala.Product
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.
param: startField The leftmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH). param: endField The rightmost field which the type comprises of. Valid values: 0 (YEAR), 1 (MONTH).
Constructors
abstract static boolean
int
Year-month interval values always occupy 4 bytes.
byte
abstract static boolean
static byte
abstract static int
static scala.collection.Iterator<String>
static scala.collection.Iterator<Object>
byte
Name of the type used in JSON serialization.
static byte
static scala.collection.immutable.Seq<Object>
Methods inherited from class org.apache.spark.sql.types.DataTypecatalogString, COLLATIONS_METADATA_KEY, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql
Methods inherited from interface scala.EqualscanEqual, equals
Methods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
public YearMonthIntervalType(byte startField, byte endField)
public static byte YEAR()
public static byte MONTH()
()
()
public abstract static int productArity()
()
()
()
public byte startField()
public byte endField()
public int defaultSize()
Year-month interval values always occupy 4 bytes. The YEAR field is constrained by the upper bound 178956970 to fit to Int
.
defaultSize
in class DataType
Name of the type used in JSON serialization.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4