class XmlReader extends Serializable
A collection of static functions for working with XML files in Spark SQL
- Alphabetic
- By Inheritance
- XmlReader
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
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
-
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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
def
xmlDataset(spark: SparkSession, ds: Dataset[String]): DataFrame
- spark
current SparkSession
- ds
XML for individual 'rows' as Strings
- returns
XML parsed as a DataFrame
-
def
xmlFile(spark: SparkSession, path: String): DataFrame
- spark
current SparkSession
- path
path to XML files to parse
- returns
XML parsed as a DataFrame
-
def
xmlRdd(spark: SparkSession, xmlRDD: RDD[String]): DataFrame
- spark
current SparkSession
- xmlRDD
XML for individual 'rows' as Strings
- returns
XML parsed as a DataFrame
Deprecated Value Members
-
def
withAttributePrefix(attributePrefix: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'attributePrefix' to specify options
-
def
withCharset(charset: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'charset' to specify options
-
def
withColumnNameOfCorruptRecord(name: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'columnNameOfCorruptRecord' to specify options
-
def
withCompression(codec: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'codec' to specify options
-
def
withExcludeAttribute(exclude: Boolean): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'excludeAttribute' to specify options
-
def
withFailFast(failFast: Boolean): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.10.0) Use XmlReader(Map) with key 'mode' as 'FAILFAST' to specify options
-
def
withIgnoreSurroundingSpaces(ignore: Boolean): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'ignoreSurroundingSpaces' to specify options
-
def
withParseMode(mode: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'mode' to specify options
-
def
withRowTag(rowTag: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'rowTag' to specify options
-
def
withRowValidationXSDPath(path: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'rowValidationXSDPath' to specify options
-
def
withSamplingRatio(samplingRatio: Double): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'samplingRatio' to specify options
-
def
withSchema(schema: StructType): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(StructType) to specify schema
-
def
withTreatEmptyValuesAsNulls(treatAsNull: Boolean): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'treatEmptyValuesAsNulls' to specify options
-
def
withValueTag(valueTag: String): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.13.0) Use XmlReader(Map) with key 'valueTag' to specify options
-
def
xmlFile(sqlContext: SQLContext, path: String): DataFrame
Returns a Schema RDD for the given XML path.
Returns a Schema RDD for the given XML path.
- Annotations
- @deprecated
- Deprecated
(Since version 0.5.0) Use xmlFile(SparkSession, ...)
-
def
xmlRdd(sqlContext: SQLContext, xmlRDD: RDD[String]): DataFrame
- Annotations
- @deprecated
- Deprecated
(Since version 0.5.0) Use xmlRdd(SparkSession, ...)