class XmlReader extends Serializable
A collection of static functions for working with XML files in Spark SQL
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- XmlReader
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new XmlReader()
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 withAttributePrefix(attributePrefix: String): XmlReader
- def withCharset(charset: String): XmlReader
- def withColumnNameOfCorruptRecord(name: String): XmlReader
- def withCompression(codec: String): XmlReader
- def withExcludeAttribute(exclude: Boolean): XmlReader
- def withIgnoreSurroundingSpaces(ignore: Boolean): XmlReader
- def withParseMode(mode: String): XmlReader
- def withRowTag(rowTag: String): XmlReader
- def withRowValidationXSDPath(path: String): XmlReader
- def withSamplingRatio(samplingRatio: Double): XmlReader
- def withSchema(schema: StructType): XmlReader
- def withTreatEmptyValuesAsNulls(treatAsNull: Boolean): XmlReader
- def withValueTag(valueTag: String): XmlReader
-
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
withFailFast(failFast: Boolean): XmlReader
- Annotations
- @deprecated
- Deprecated
(Since version 0.10.0) Use withParseMode("FAILFAST") instead
-
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, ...)