class Variant extends Serializable
Representation of Snowflake Variant data
- Since
0.8.0
- Alphabetic
- By Inheritance
- Variant
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Variant(obj: Any)
Creates a Variant from Object value.
Creates a Variant from Object value.
- obj
Any Java object
- Since
0.8.0
-
new
Variant(arr: Array[AnyRef])
Creates a Variant from an array.
Creates a Variant from an array.
- arr
An array of data
- Since
0.8.0
-
new
Variant(list: List[AnyRef])
Creates a Variant from a list.
Creates a Variant from a list.
- list
A list of data
- Since
0.8.0
-
new
Variant(timestamp: Timestamp)
Creates a Variant from Timestamp value.
Creates a Variant from Timestamp value.
- timestamp
A Timestamp object
- Since
0.8.0
-
new
Variant(date: Date)
Creates a Variant from Date value.
Creates a Variant from Date value.
- date
A Date object
- Since
0.8.0
-
new
Variant(time: Time)
Creates a Variant from Time value.
Creates a Variant from Time value.
- time
A Time object
- Since
0.8.0
-
new
Variant(bytes: Array[Byte])
Creates a Variant from binary value.
Creates a Variant from binary value.
- bytes
An array of byte representing binary data
- Since
0.8.0
-
new
Variant(str: String)
Creates a Variant from String value.
Creates a Variant from String value.
- Since
0.8.0
-
new
Variant(value: Boolean)
Creates a Variant from boolean value.
Creates a Variant from boolean value.
- value
A boolean value
- Since
0.8.0
-
new
Variant(num: BigInteger)
Creates a Variant from BigInteger value.
Creates a Variant from BigInteger value.
- num
A BigInteger number
- Since
0.8.0
-
new
Variant(num: BigDecimal)
Creates a Variant from BigDecimal value.
Creates a Variant from BigDecimal value.
- num
A BigDecimal number
- Since
0.8.0
-
new
Variant(num: Short)
Creates a Variant from short value.
Creates a Variant from short value.
- num
A short number
- Since
0.8.0
-
new
Variant(num: Int)
Creates a Variant from int value.
Creates a Variant from int value.
- num
An int number
- Since
0.8.0
-
new
Variant(num: Long)
Creates a Variant from long value.
Creates a Variant from long value.
- num
A long number
- Since
0.8.0
-
new
Variant(num: Double)
Creates a Variant from double value.
Creates a Variant from double value.
- num
A double number
- Since
0.8.0
-
new
Variant(num: Float)
Creates a Variant from float value.
Creates a Variant from float value.
- num
A float number
- Since
0.8.0
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
-
def
asArray(): Array[Variant]
Converts the variant as array of Variant.
Converts the variant as array of Variant.
- returns
An array of Variant
- Since
0.8.0
-
def
asBigDecimal(): BigDecimal
Converts the variant as BigDecimal value.
Converts the variant as BigDecimal value.
- returns
A BigDecimal number
- Since
0.8.0
-
def
asBigInteger(): BigInteger
Converts the variant as BigInteger value.
Converts the variant as BigInteger value.
- returns
A BigInteger number
- Since
0.8.0
-
def
asBinary(): Array[Byte]
Converts the variant as binary value.
Converts the variant as binary value.
- returns
An array of byte representing binary data
- Since
0.8.0
-
def
asBoolean(): Boolean
Converts the variant as boolean value.
Converts the variant as boolean value.
- returns
a boolean value
- Since
0.8.0
-
def
asDate(): Date
Converts the variant as Date value.
Converts the variant as Date value.
- returns
A Date data
- Since
0.8.0
-
def
asDouble(): Double
Converts the variant as double value.
Converts the variant as double value.
- returns
A double number
- Since
0.8.0
-
def
asFloat(): Float
Converts the variant as float value.
Converts the variant as float value.
- returns
A float number
- Since
0.8.0
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asInt(): Int
Converts the variant as int value.
Converts the variant as int value.
- returns
An int number
- Since
0.8.0
-
def
asJsonString(): String
Converts the variant as valid Json String.
Converts the variant as valid Json String.
- returns
A valid json string
- Since
0.8.0
-
def
asList(): List[Variant]
Converts the variant as list of Variant.
Converts the variant as list of Variant.
- returns
A list of Variant
- Since
0.8.0
-
def
asLong(): Long
Converts the variant as long value.
Converts the variant as long value.
- returns
A long number
- Since
0.8.0
-
def
asMap(): Map[String, Variant]
Converts the variant as map of Variant.
Converts the variant as map of Variant.
- returns
A map from String to Variant
- Since
0.8.0
-
def
asShort(): Short
Converts the variant as short value.
Converts the variant as short value.
- returns
A short number
- Since
0.8.0
-
def
asString(): String
Converts the variant as String value.
Converts the variant as String value.
- returns
A String number
- Since
0.8.0
-
def
asTime(): Time
Converts the variant as Time value.
Converts the variant as Time value.
- returns
A Time data
- Since
0.8.0
-
def
asTimestamp(): Timestamp
Converts the variant as Timestamp value.
Converts the variant as Timestamp value.
- returns
A Timestamp data
- Since
0.8.0
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
Checks whether two Variants are equal.
Checks whether two Variants are equal.
- returns
true if they are equal.
- Definition Classes
- Variant → AnyRef → Any
- Since
0.8.0
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toScalaVariant(): snowpark.types.Variant
Converts this Variant object to Snowpark Scala API's Variant object.
Converts this Variant object to Snowpark Scala API's Variant object.
- returns
A Variant object from Snowpark Scala API
- Since
0.8.0
-
def
toString(): String
An alias of
asString() -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()