Packages

class CastOptions extends Serializable

This class is used to encapsulate parameters to use to help determine how to cast

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CastOptions
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CastOptions(legacyCastComplexTypesToString: Boolean, ansiMode: Boolean, stringToDateAnsiMode: Boolean, castToJsonString: Boolean = false, ignoreNullFieldsInStructs: Boolean = true, timeZoneId: Option[String] = Option.empty[String])

    legacyCastComplexTypesToString

    If we should use legacy casting method

    ansiMode

    Whether the cast should be ANSI compliant

    stringToDateAnsiMode

    Whether to cast String to Date using ANSI compliance

    castToJsonString

    Whether to use JSON format when casting to String

    ignoreNullFieldsInStructs

    Whether to omit null values when converting to JSON

    timeZoneId

    If cast is timezone aware, the timezone needed

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val castToJsonString: Boolean
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. val ignoreNullFieldsInStructs: Boolean
  13. val isAnsiMode: Boolean

    Returns whether we should cast using ANSI compliance

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val leftBracket: String

    Retuns the left bracket to use when surrounding brackets when converting map or struct types to string example: [ "a" -> "b"] when legacyCastComplexTypesToString is enabled otherwise { "a" -> "b" }

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val nullString: String

    Returns the string value to use to represent null elements in array/struct/map.

  20. val rightBracket: String

    Returns the right bracket to use when surrounding brackets when converting map or struct types to string example: [ "a" -> "b"] when legacyCastComplexTypesToString is enabled otherwise { "a" -> "b" }

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. val timeZoneId: Option[String]
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. val useAnsiStringToDateMode: Boolean

    Returns whether we should use ANSI compliance when casting a String to Date

  25. val useDecimalPlainString: Boolean

    Returns whether a decimal value with exponents should be converted to a plain string, exactly like Java BigDecimal.toPlainString() example: plain string value of decimal 1.23E+7 is 12300000

  26. val useHexFormatForBinary: Boolean

    Returns whether the binary data should be printed as hex values instead of ascii values

  27. val useLegacyComplexTypesToString: Boolean

    Returns whether we should use legacy behavior to convert complex types like structs/maps to a String

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped