Package org.apache.spark.sql.jdbc
Class JdbcDialects
Object
org.apache.spark.sql.jdbc.JdbcDialects
:: DeveloperApi ::
 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.
- Note:
- All new dialects are applied to new jdbc DataFrames only. Make sure to register your dialects first.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic JdbcDialectFetch the JdbcDialect class corresponding to a given database url.static voidregisterDialect(JdbcDialect dialect) Register a dialect for use on all new matching jdbcorg.apache.spark.sql.DataFrame.static voidunregisterDialect(JdbcDialect dialect) Unregister a dialect.
- 
Constructor Details- 
JdbcDialectspublic JdbcDialects()
 
- 
- 
Method Details- 
registerDialectRegister a dialect for use on all new matching jdbcorg.apache.spark.sql.DataFrame. Reading an existing dialect will cause a move-to-front.- Parameters:
- dialect- The new dialect.
 
- 
unregisterDialectUnregister a dialect. Does nothing if the dialect is not registered.- Parameters:
- dialect- The jdbc dialect.
 
- 
getFetch the JdbcDialect class corresponding to a given database url.- Parameters:
- url- (undocumented)
- Returns:
- (undocumented)
 
 
-