Class VariantNull
java.lang.Object
org.apache.calcite.runtime.variant.VariantValue
org.apache.calcite.runtime.variant.VariantNull
The VARIANT type has its own notion of null, which is
different from the SQL NULL value. For example, two variant nulls are equal
with each other. This class represents such values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Objectcast(RuntimeTypeInformation type) Cast this value to the specified type.booleanstatic VariantNullGet the single instance of this type.A string describing the runtime type information of this value.inthashCode()@Nullable ObjecttoString()Methods inherited from class org.apache.calcite.runtime.variant.VariantValue
getTypeString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
VariantNull
protected VariantNull()
-
-
Method Details
-
getTypeString
Description copied from class:VariantValueA string describing the runtime type information of this value.- Specified by:
getTypeStringin classVariantValue
-
cast
Description copied from class:VariantValueCast this value to the specified type. Currently, the rule is: if the value has the specified type, the value field is returned, otherwise a SQL NULL is returned.- Specified by:
castin classVariantValue
-
item
- Specified by:
itemin classVariantValue
-
getInstance
Get the single instance of this type. -
hashCode
public int hashCode() -
equals
-
toString
-