org.apache.spark.sql.jdbc
Class JdbcDialects

Object
  extended by org.apache.spark.sql.jdbc.JdbcDialects

public class JdbcDialects
extends Object

:: DeveloperApi :: Registry of dialects that apply to every new jdbc 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.

Note that all new dialects are applied to new jdbc DataFrames only. Make sure to register your dialects first.


Constructor Summary
JdbcDialects()
           
 
Method Summary
static void registerDialect(JdbcDialect dialect)
          Register a dialect for use on all new matching jdbc DataFrame.
static void unregisterDialect(JdbcDialect dialect)
          Unregister a dialect.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDialects

public JdbcDialects()
Method Detail

registerDialect

public static void registerDialect(JdbcDialect dialect)
Register a dialect for use on all new matching jdbc DataFrame. Readding an existing dialect will cause a move-to-front.

Parameters:
dialect - The new dialect.

unregisterDialect

public static void unregisterDialect(JdbcDialect dialect)
Unregister a dialect. Does nothing if the dialect is not registered.

Parameters:
dialect - The jdbc dialect.