Packages

class ShapefileDataSource extends FileDataSourceV2 with DataSourceRegister

A Spark SQL data source for reading ESRI Shapefiles. This data source supports reading the following components of shapefiles:

  • .shp: the main file
  • .dbf: (optional) the attribute file
  • .shx: (optional) the index file
  • .cpg: (optional) the code page file
  • .prj: (optional) the projection file

The load path can be a directory containing the shapefiles, or a path to the .shp file. If the path refers to a .shp file, the data source will also read other components such as .dbf and .shx files in the same directory.

Linear Supertypes
FileDataSourceV2, DataSourceRegister, TableProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ShapefileDataSource
  2. FileDataSourceV2
  3. DataSourceRegister
  4. TableProvider
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ShapefileDataSource()

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(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def fallbackFileFormat: Class[_ <: FileFormat]
    Definition Classes
    ShapefileDataSource → FileDataSourceV2
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def getOptionsWithoutPaths(map: CaseInsensitiveStringMap): CaseInsensitiveStringMap
    Attributes
    protected
    Definition Classes
    FileDataSourceV2
  11. def getPaths(map: CaseInsensitiveStringMap): Seq[String]
    Attributes
    protected
    Definition Classes
    FileDataSourceV2
  12. def getTable(options: CaseInsensitiveStringMap, schema: StructType): Table
    Attributes
    protected
    Definition Classes
    ShapefileDataSource → FileDataSourceV2
  13. def getTable(options: CaseInsensitiveStringMap): Table
    Attributes
    protected
    Definition Classes
    ShapefileDataSource → FileDataSourceV2
  14. def getTable(schema: StructType, partitioning: Array[Transform], properties: Map[String, String]): Table
    Definition Classes
    FileDataSourceV2 → TableProvider
  15. def getTableName(map: CaseInsensitiveStringMap, paths: Seq[String]): String
    Attributes
    protected
    Definition Classes
    FileDataSourceV2
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  17. def inferPartitioning(options: CaseInsensitiveStringMap): Array[Transform]
    Definition Classes
    FileDataSourceV2 → TableProvider
  18. def inferSchema(options: CaseInsensitiveStringMap): StructType
    Definition Classes
    FileDataSourceV2 → TableProvider
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. def shortName(): String
    Definition Classes
    ShapefileDataSource → DataSourceRegister
  24. lazy val sparkSession: Session
    Definition Classes
    FileDataSourceV2
  25. def supportsExternalMetadata(): Boolean
    Definition Classes
    FileDataSourceV2 → TableProvider
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 FileDataSourceV2

Inherited from DataSourceRegister

Inherited from TableProvider

Inherited from AnyRef

Inherited from Any

Ungrouped