Packages

o

org.apache.spark.sql.jdbc

JdbcDialects

object JdbcDialects

Developer API

Registry of dialects that apply to every new jdbc org.apache.spark.sql.DataFrame.

If multiple matching dialects are registered then all matching ones will be tried in reverse order. A user-added dialect will thus be applied first, overwriting the defaults.

Annotations
@DeveloperApi()
Source
JdbcDialects.scala
Note

All new dialects are applied to new jdbc DataFrames only. Make sure to register your dialects first.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JdbcDialects
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def get(url: String): JdbcDialect

    Fetch the JdbcDialect class corresponding to a given database url.

  2. def registerDialect(dialect: JdbcDialect): Unit

    Register a dialect for use on all new matching jdbc org.apache.spark.sql.DataFrame.

    Register a dialect for use on all new matching jdbc org.apache.spark.sql.DataFrame. Reading an existing dialect will cause a move-to-front.

    dialect

    The new dialect.

  3. def unregisterDialect(dialect: JdbcDialect): Unit

    Unregister a dialect.

    Unregister a dialect. Does nothing if the dialect is not registered.

    dialect

    The jdbc dialect.