public class YearMonthIntervalType extends DataType implements scala.Product, scala.Serializable
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).
Constructor and Description |
---|
YearMonthIntervalType(byte startField,
byte endField) |
Modifier and Type | Method and Description |
---|---|
static YearMonthIntervalType |
apply() |
static YearMonthIntervalType |
apply(byte field) |
abstract static boolean |
canEqual(Object that) |
static YearMonthIntervalType |
DEFAULT() |
int |
defaultSize()
Year-month interval values always occupy 4 bytes.
|
byte |
endField() |
abstract static boolean |
equals(Object that) |
static String |
fieldToString(byte field) |
static byte |
MONTH() |
abstract static int |
productArity() |
abstract static Object |
productElement(int n) |
static scala.collection.Iterator<Object> |
productIterator() |
static String |
productPrefix() |
byte |
startField() |
static scala.collection.immutable.Map<String,Object> |
stringToField() |
String |
typeName()
Name of the type used in JSON serialization.
|
static byte |
YEAR() |
static scala.collection.Seq<Object> |
yearMonthFields() |
catalogString, equalsIgnoreCaseAndNullability, equalsIgnoreNullability, equalsStructurally, equalsStructurallyByName, fromDDL, fromJson, json, parseTypeWithFallback, prettyJson, simpleString, sql
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public YearMonthIntervalType(byte startField, byte endField)
public static byte YEAR()
public static byte MONTH()
public static scala.collection.Seq<Object> yearMonthFields()
public static String fieldToString(byte field)
public static scala.collection.immutable.Map<String,Object> stringToField()
public static YearMonthIntervalType DEFAULT()
public static YearMonthIntervalType apply()
public static YearMonthIntervalType apply(byte field)
public abstract static boolean canEqual(Object that)
public abstract static boolean equals(Object that)
public abstract static Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<Object> productIterator()
public static String productPrefix()
public byte startField()
public byte endField()
public int defaultSize()
Int
.defaultSize
in class DataType