Packages

class Variant extends Serializable

Representation of Snowflake Variant data

Since

0.8.0

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Variant
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Variant(obj: Any)

    Creates a Variant from Object value.

    Creates a Variant from Object value.

    obj

    Any Java object

    Since

    0.8.0

  2. 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

  3. 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

  4. new Variant(timestamp: Timestamp)

    Creates a Variant from Timestamp value.

    Creates a Variant from Timestamp value.

    timestamp

    A Timestamp object

    Since

    0.8.0

  5. new Variant(date: Date)

    Creates a Variant from Date value.

    Creates a Variant from Date value.

    date

    A Date object

    Since

    0.8.0

  6. new Variant(time: Time)

    Creates a Variant from Time value.

    Creates a Variant from Time value.

    time

    A Time object

    Since

    0.8.0

  7. 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

  8. new Variant(str: String)

    Creates a Variant from String value.

    Creates a Variant from String value.

    Since

    0.8.0

  9. new Variant(value: Boolean)

    Creates a Variant from boolean value.

    Creates a Variant from boolean value.

    value

    A boolean value

    Since

    0.8.0

  10. new Variant(num: BigInteger)

    Creates a Variant from BigInteger value.

    Creates a Variant from BigInteger value.

    num

    A BigInteger number

    Since

    0.8.0

  11. new Variant(num: BigDecimal)

    Creates a Variant from BigDecimal value.

    Creates a Variant from BigDecimal value.

    num

    A BigDecimal number

    Since

    0.8.0

  12. new Variant(num: Short)

    Creates a Variant from short value.

    Creates a Variant from short value.

    num

    A short number

    Since

    0.8.0

  13. new Variant(num: Int)

    Creates a Variant from int value.

    Creates a Variant from int value.

    num

    An int number

    Since

    0.8.0

  14. new Variant(num: Long)

    Creates a Variant from long value.

    Creates a Variant from long value.

    num

    A long number

    Since

    0.8.0

  15. new Variant(num: Double)

    Creates a Variant from double value.

    Creates a Variant from double value.

    num

    A double number

    Since

    0.8.0

  16. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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

  5. def asBigDecimal(): BigDecimal

    Converts the variant as BigDecimal value.

    Converts the variant as BigDecimal value.

    returns

    A BigDecimal number

    Since

    0.8.0

  6. def asBigInteger(): BigInteger

    Converts the variant as BigInteger value.

    Converts the variant as BigInteger value.

    returns

    A BigInteger number

    Since

    0.8.0

  7. 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

  8. def asBoolean(): Boolean

    Converts the variant as boolean value.

    Converts the variant as boolean value.

    returns

    a boolean value

    Since

    0.8.0

  9. def asDate(): Date

    Converts the variant as Date value.

    Converts the variant as Date value.

    returns

    A Date data

    Since

    0.8.0

  10. def asDouble(): Double

    Converts the variant as double value.

    Converts the variant as double value.

    returns

    A double number

    Since

    0.8.0

  11. def asFloat(): Float

    Converts the variant as float value.

    Converts the variant as float value.

    returns

    A float number

    Since

    0.8.0

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def asInt(): Int

    Converts the variant as int value.

    Converts the variant as int value.

    returns

    An int number

    Since

    0.8.0

  14. 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

  15. 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

  16. def asLong(): Long

    Converts the variant as long value.

    Converts the variant as long value.

    returns

    A long number

    Since

    0.8.0

  17. 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

  18. def asShort(): Short

    Converts the variant as short value.

    Converts the variant as short value.

    returns

    A short number

    Since

    0.8.0

  19. def asString(): String

    Converts the variant as String value.

    Converts the variant as String value.

    returns

    A String number

    Since

    0.8.0

  20. def asTime(): Time

    Converts the variant as Time value.

    Converts the variant as Time value.

    returns

    A Time data

    Since

    0.8.0

  21. def asTimestamp(): Timestamp

    Converts the variant as Timestamp value.

    Converts the variant as Timestamp value.

    returns

    A Timestamp data

    Since

    0.8.0

  22. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. 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

  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. 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

  34. def toString(): String

    An alias of asString()

    An alias of asString()

    returns

    A string data

    Definition Classes
    Variant → AnyRef → Any
    Since

    0.8.0

  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped