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.
- Alphabetic
- By Inheritance
- JSONOptions
- Logging
- FileSourceOptions
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Type Members
- implicit class LogStringContext extends AnyRef
- Definition Classes
- Logging
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
- val allowBackslashEscapingAnyCharacter: Boolean
- val allowComments: Boolean
- val allowNonNumericNumbers: Boolean
- val allowNumericLeadingZeros: Boolean
- val allowSingleQuotes: Boolean
- val allowUnquotedFieldNames: Boolean
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildJsonFactory(): JsonFactory
Build a Jackson JsonFactory using JSON options.
- def checkedEncoding(enc: String): String
- Attributes
- protected
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val columnNameOfCorruptRecord: String
- def commonTimestampFormat: String
- Attributes
- protected
- Definition Classes
- FileSourceOptions
- val compressionCodec: Option[String]
- val dateFormatInRead: Option[String]
- val dateFormatInWrite: String
- val dropFieldIfAllNull: Boolean
- val enableDateTimeParsingFallback: Option[Boolean]
- 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. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val ignoreCorruptFiles: Boolean
- Definition Classes
- FileSourceOptions
- val ignoreMissingFiles: Boolean
- Definition Classes
- FileSourceOptions
- val ignoreNullFields: Boolean
- 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.
- def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
- val lineSeparator: Option[String]
A string between two consecutive JSON records.
- val lineSeparatorInRead: Option[Array[Byte]]
- val lineSeparatorInWrite: String
- val locale: Locale
- def log: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logDebug(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logError(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logInfo(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logName: String
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logTrace(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(entry: LogEntry): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def logWarning(msg: => String): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val multiLine: Boolean
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- val parameters: CaseInsensitiveMap[String]
- val parseMode: ParseMode
- val prefersDecimal: Boolean
- val pretty: Boolean
Generating JSON strings in pretty representation if the parameter is enabled.
- val primitivesAsString: Boolean
- val samplingRatio: Double
- val singleVariantColumn: Option[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val timestampFormatInRead: Option[String]
- val timestampFormatInWrite: String
- val timestampNTZFormatInRead: Option[String]
- val timestampNTZFormatInWrite: String
- def toString(): String
- Definition Classes
- AnyRef → Any
- val useUnsafeRow: Boolean
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withLogContext(context: Map[String, String])(body: => Unit): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val writeNonAsciiCharacterAsCodePoint: Boolean
Generating \u0000 style codepoints for non-ASCII characters if the parameter is enabled.
- val writeNullIfWithDefaultValue: Boolean
- val zoneId: ZoneId
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)