Packages

class JSONOptions extends FileSourceOptions with Logging

Options for parsing JSON data into Spark SQL rows.

Most of these map directly to Jackson's internal options, specified in JsonReadFeature.

Linear Supertypes
Logging, FileSourceOptions, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JSONOptions
  2. Logging
  3. FileSourceOptions
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JSONOptions(parameters: Map[String, String], defaultTimeZoneId: String, defaultColumnNameOfCorruptRecord: String = "")
  2. new JSONOptions(parameters: CaseInsensitiveMap[String], defaultTimeZoneId: String, defaultColumnNameOfCorruptRecord: String)

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

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 MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  5. val allowBackslashEscapingAnyCharacter: Boolean
  6. val allowComments: Boolean
  7. val allowNonNumericNumbers: Boolean
  8. val allowNumericLeadingZeros: Boolean
  9. val allowSingleQuotes: Boolean
  10. val allowUnquotedFieldNames: Boolean
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def buildJsonFactory(): JsonFactory

    Build a Jackson JsonFactory using JSON options.

  13. def checkedEncoding(enc: String): String
    Attributes
    protected
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. val columnNameOfCorruptRecord: String
  16. def commonTimestampFormat: String
    Attributes
    protected
    Definition Classes
    FileSourceOptions
  17. val compressionCodec: Option[String]
  18. val dateFormatInRead: Option[String]
  19. val dateFormatInWrite: String
  20. val dropFieldIfAllNull: Boolean
  21. val enableDateTimeParsingFallback: Option[Boolean]
  22. val encoding: Option[String]

    Standard encoding (charset) name.

    Standard encoding (charset) name. For example UTF-8, UTF-16LE and UTF-32BE. If the encoding is not specified (None) in read, it will be detected automatically when the multiLine option is set to true. If encoding is not specified in write, UTF-8 is used by default.

  23. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  27. val ignoreCorruptFiles: Boolean
    Definition Classes
    FileSourceOptions
  28. val ignoreMissingFiles: Boolean
    Definition Classes
    FileSourceOptions
  29. val ignoreNullFields: Boolean
  30. val inferTimestamp: Boolean

    Enables inferring of TimestampType and TimestampNTZType from strings matched to the corresponding timestamp pattern defined by the timestampFormat and timestampNTZFormat options respectively.

  31. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  32. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  35. val lineSeparator: Option[String]

    A string between two consecutive JSON records.

  36. val lineSeparatorInRead: Option[Array[Byte]]
  37. val lineSeparatorInWrite: String
  38. val locale: Locale
  39. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  40. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  41. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  45. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  46. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  47. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  49. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  50. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  51. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  52. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  53. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  54. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  55. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  56. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  57. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  58. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  59. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  60. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  61. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  62. val multiLine: Boolean
  63. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  65. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  66. val parameters: CaseInsensitiveMap[String]
  67. val parseMode: ParseMode
  68. val prefersDecimal: Boolean
  69. val pretty: Boolean

    Generating JSON strings in pretty representation if the parameter is enabled.

  70. val primitivesAsString: Boolean
  71. val samplingRatio: Double
  72. val singleVariantColumn: Option[String]
  73. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  74. val timestampFormatInRead: Option[String]
  75. val timestampFormatInWrite: String
  76. val timestampNTZFormatInRead: Option[String]
  77. val timestampNTZFormatInWrite: String
  78. def toString(): String
    Definition Classes
    AnyRef → Any
  79. val useUnsafeRow: Boolean
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  82. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  83. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  84. val writeNonAsciiCharacterAsCodePoint: Boolean

    Generating \u0000 style codepoints for non-ASCII characters if the parameter is enabled.

  85. val writeNullIfWithDefaultValue: Boolean
  86. val zoneId: ZoneId

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Logging

Inherited from FileSourceOptions

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped