Class VariantSqlValue
java.lang.Object
org.apache.calcite.runtime.variant.VariantValue
org.apache.calcite.runtime.variant.VariantSqlValue
- Direct Known Subclasses:
VariantNonNull,VariantSqlNull
A value of VARIANT type that represents a SQL value
(The VARIANT type also has a null value which is different
from any other SQL value).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVariantSqlValue(RuntimeTypeInformation.RuntimeSqlTypeName runtimeType) -
Method Summary
Modifier and TypeMethodDescriptionstatic VariantValuecreate(RoundingMode roundingMode, @Nullable Object object, RuntimeTypeInformation type) Create a VariantValue from a specified SQL value and the runtime type information.A string describing the runtime type information of this value.Methods inherited from class org.apache.calcite.runtime.variant.VariantValue
cast, getTypeString, item
-
Constructor Details
-
VariantSqlValue
-
-
Method Details
-
getTypeString
Description copied from class:VariantValueA string describing the runtime type information of this value.- Specified by:
getTypeStringin classVariantValue
-
create
public static VariantValue create(RoundingMode roundingMode, @Nullable Object object, RuntimeTypeInformation type) Create a VariantValue from a specified SQL value and the runtime type information.- Parameters:
roundingMode- Rounding mode used for converting numeric values.object- SQL runtime value.type- Runtime type information.- Returns:
- The created VariantValue.
-