class CastOptions extends Serializable
This class is used to encapsulate parameters to use to help determine how to cast
- Alphabetic
- By Inheritance
- CastOptions
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
- val castToJsonString: Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
- val ignoreNullFieldsInStructs: Boolean
-
val
isAnsiMode: Boolean
Returns whether we should cast using ANSI compliance
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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" }
-
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()
-
val
nullString: String
Returns the string value to use to represent null elements in array/struct/map.
-
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" }
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val timeZoneId: Option[String]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
useAnsiStringToDateMode: Boolean
Returns whether we should use ANSI compliance when casting a String to Date
-
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
-
val
useHexFormatForBinary: Boolean
Returns whether the binary data should be printed as hex values instead of ascii values
-
val
useLegacyComplexTypesToString: Boolean
Returns whether we should use legacy behavior to convert complex types like structs/maps to a String
-
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()