case object VariantGet extends Product with Serializable
- Alphabetic
- By Inheritance
- VariantGet
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cast(v: Variant, dataType: DataType, castArgs: VariantCastArgs): Any
Cast a variant
vinto a target data typedataType.Cast a variant
vinto a target data typedataType. If the variant represents a variant null, the result is always a SQL NULL. The cast may fail due to an illegal type combination (e.g., cast a variant int to binary), or an invalid input valid (e.g, cast a variant string "hello" to int). If the cast fails, throw an exception whenfailOnErroris true, or return a SQL NULL when it is false. - def cast(input: VariantVal, dataType: DataType, castArgs: VariantCastArgs): Any
A simple wrapper of the
castfunction that takesVariantrather thanVariantVal.A simple wrapper of the
castfunction that takesVariantrather thanVariantVal. TheCastexpression uses it and makes the implementation simpler. - def castDecimalToString(input: Decimal): UTF8String
- def castDecimalToTimestamp(input: Decimal): Long
- def castLongToTimestamp(input: Long): Long
- def checkDataType(dataType: DataType, allowStructsAndMaps: Boolean = true): Boolean
Returns whether a data type can be cast into/from variant.
Returns whether a data type can be cast into/from variant. For scalar types, we allow a subset of them. For nested types, we reject map types with a non-string key type.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getParsedPath(pathValue: String, prettyName: String): Array[VariantPathSegment]
Get parsed Array[VariantPathSegment] from string representing path
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def variantGet(input: VariantVal, path: UTF8String, dataType: DataType, castArgs: VariantCastArgs, prettyName: String): Any
Implementation of the
VariantGetexpression where the path is provided as a UTF8String - def variantGet(input: VariantVal, parsedPath: Array[VariantPathSegment], dataType: DataType, castArgs: VariantCastArgs): Any
The actual implementation of the
VariantGetexpression. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)