Packages

class XmlReader extends Serializable

A collection of static functions for working with XML files in Spark SQL

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. XmlReader
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new XmlReader()

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  20. def withAttributePrefix(attributePrefix: String): XmlReader
  21. def withCharset(charset: String): XmlReader
  22. def withColumnNameOfCorruptRecord(name: String): XmlReader
  23. def withCompression(codec: String): XmlReader
  24. def withExcludeAttribute(exclude: Boolean): XmlReader
  25. def withFailFast(failFast: Boolean): XmlReader
  26. def withIgnoreSurroundingSpaces(ignore: Boolean): XmlReader
  27. def withParseMode(mode: String): XmlReader
  28. def withRowTag(rowTag: String): XmlReader
  29. def withRowValidationXSDPath(path: String): XmlReader
  30. def withSamplingRatio(samplingRatio: Double): XmlReader
  31. def withSchema(schema: StructType): XmlReader
  32. def withTreatEmptyValuesAsNulls(treatAsNull: Boolean): XmlReader
  33. def withValueTag(valueTag: String): XmlReader
  34. def xmlDataset(spark: SparkSession, ds: Dataset[String]): DataFrame

    spark

    current SparkSession

    ds

    XML for individual 'rows' as Strings

    returns

    XML parsed as a DataFrame

  35. def xmlFile(spark: SparkSession, path: String): DataFrame

    spark

    current SparkSession

    path

    path to XML files to parse

    returns

    XML parsed as a DataFrame

  36. 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

  1. 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, ...)

  2. def xmlRdd(sqlContext: SQLContext, xmlRDD: RDD[String]): DataFrame
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Use xmlRdd(SparkSession, ...)

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped