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
Ordering
- Alphabetic
- By Inheritance
Inherited
- ShapefileDataSource
- FileDataSourceV2
- DataSourceRegister
- TableProvider
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ShapefileDataSource()
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(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fallbackFileFormat: Class[_ <: FileFormat]
- Definition Classes
- ShapefileDataSource → FileDataSourceV2
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getOptionsWithoutPaths(map: CaseInsensitiveStringMap): CaseInsensitiveStringMap
- Attributes
- protected
- Definition Classes
- FileDataSourceV2
- def getPaths(map: CaseInsensitiveStringMap): Seq[String]
- Attributes
- protected
- Definition Classes
- FileDataSourceV2
- def getTable(options: CaseInsensitiveStringMap, schema: StructType): Table
- Attributes
- protected
- Definition Classes
- ShapefileDataSource → FileDataSourceV2
- def getTable(options: CaseInsensitiveStringMap): Table
- Attributes
- protected
- Definition Classes
- ShapefileDataSource → FileDataSourceV2
- def getTable(schema: StructType, partitioning: Array[Transform], properties: Map[String, String]): Table
- Definition Classes
- FileDataSourceV2 → TableProvider
- def getTableName(map: CaseInsensitiveStringMap, paths: Seq[String]): String
- Attributes
- protected
- Definition Classes
- FileDataSourceV2
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def inferPartitioning(options: CaseInsensitiveStringMap): Array[Transform]
- Definition Classes
- FileDataSourceV2 → TableProvider
- def inferSchema(options: CaseInsensitiveStringMap): StructType
- Definition Classes
- FileDataSourceV2 → TableProvider
- 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
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def shortName(): String
- Definition Classes
- ShapefileDataSource → DataSourceRegister
- lazy val sparkSession: Session
- Definition Classes
- FileDataSourceV2
- def supportsExternalMetadata(): Boolean
- Definition Classes
- FileDataSourceV2 → TableProvider
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)