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

    Build a Jackson JsonFactory using JSON options.

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

  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  26. val ignoreCorruptFiles: Boolean
    Definition Classes
    FileSourceOptions
  27. val ignoreMissingFiles: Boolean
    Definition Classes
    FileSourceOptions
  28. val ignoreNullFields: Boolean
  29. 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.

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

    A string between two consecutive JSON records.

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

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

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

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

  83. val writeNullIfWithDefaultValue: Boolean
  84. 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