package jdbc
- Alphabetic
- Public
- Protected
Package Members
- package connection
Type Members
- class DriverWrapper extends Driver
A wrapper for a JDBC Driver to work around SPARK-6913.
A wrapper for a JDBC Driver to work around SPARK-6913.
The problem is in
java.sql.DriverManagerclass that can't access drivers loaded by Spark ClassLoader. - case class JDBCDatabaseMetadata(databaseMajorVersion: Option[Int], databaseMinorVersion: Option[Int], databaseDriverMajorVersion: Option[Int], databaseDriverMinorVersion: Option[Int]) extends Product with Serializable
Object that contains metadata about the external database.
Object that contains metadata about the external database. The metadata is static database information such as the version, or the version of the JDBC driver.
This object is stored in JDBCRDD.
- class JDBCOptions extends Serializable with Logging
Options for the JDBC data source.
- case class JDBCPartition(whereClause: String, idx: Int) extends Partition with Product with Serializable
Data corresponding to one partition of a JDBCRDD.
- class JDBCRDD extends RDD[InternalRow] with DataSourceMetricsMixin with ExternalEngineDatasourceRDD
An RDD representing a query is related to a table in a database accessed via JDBC.
An RDD representing a query is related to a table in a database accessed via JDBC. Both the driver code and the workers must be able to access the database; the driver needs to fetch the schema while the workers need to fetch the data.
- class JdbcOptionsInWrite extends JDBCOptions
- class JdbcRelationProvider extends CreatableRelationProvider with RelationProvider with DataSourceRegister
Value Members
- object DriverRegistry extends Logging
java.sql.DriverManager is always loaded by bootstrap classloader, so it can't load JDBC drivers accessible by Spark ClassLoader.
java.sql.DriverManager is always loaded by bootstrap classloader, so it can't load JDBC drivers accessible by Spark ClassLoader.
To solve the problem, drivers from user-supplied jars are wrapped into thin wrapper.
- object JDBCDatabaseMetadata extends Logging with Serializable
Companion object for DatabaseMetadata.
Companion object for DatabaseMetadata. Contains factory methods to build instances.
- object JDBCOptions extends Serializable
- object JDBCRDD extends Logging with Serializable
- object JdbcUtils extends Logging with SQLConfHelper
Util functions for JDBC tables.