public class JdbcDialects
extends Object
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.
Constructor and Description |
---|
JdbcDialects() |
Modifier and Type | Method and Description |
---|---|
static JdbcDialect |
get(String url)
Fetch the JdbcDialect class corresponding to a given database url.
|
static void |
registerDialect(JdbcDialect dialect)
Register a dialect for use on all new matching jdbc
org.apache.spark.sql.DataFrame . |
static void |
unregisterDialect(JdbcDialect dialect)
Unregister a dialect.
|
public static void registerDialect(JdbcDialect dialect)
org.apache.spark.sql.DataFrame
.
Reading an existing dialect will cause a move-to-front.
dialect
- The new dialect.public static void unregisterDialect(JdbcDialect dialect)
dialect
- The jdbc dialect.public static JdbcDialect get(String url)
url
- (undocumented)