JdbcDialect
JdbcDialect
is the base of JDBC dialects that handle a specific JDBC URL (and handle necessary type-related conversions to properly load a data from a table into a DataFrame
).
1 2 3 4 5 6 7 8 9 10 11 |
package org.apache.spark.sql.jdbc abstract class JdbcDialect extends Serializable { // only required properties (vals and methods) that have no implementation // the others follow def canHandle(url : String): Boolean } |
Property | Description |
---|---|
|
JdbcDialect | Description |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getCatalystType
Method
1 2 3 4 5 6 7 8 9 |
getCatalystType( sqlType: Int, typeName: String, size: Int, md: MetadataBuilder): Option[DataType] |
getCatalystType
…FIXME
Note
|
getCatalystType is used when…FIXME
|
getJDBCType
Method
1 2 3 4 5 |
getJDBCType(dt: DataType): Option[JdbcType] |
getJDBCType
…FIXME
Note
|
getJDBCType is used when…FIXME
|
quoteIdentifier
Method
1 2 3 4 5 |
quoteIdentifier(colName: String): String |
quoteIdentifier
…FIXME
Note
|
quoteIdentifier is used when…FIXME
|
getTableExistsQuery
Method
1 2 3 4 5 |
getTableExistsQuery(table: String): String |
getTableExistsQuery
…FIXME
Note
|
getTableExistsQuery is used when…FIXME
|
getSchemaQuery
Method
1 2 3 4 5 |
getSchemaQuery(table: String): String |
getSchemaQuery
…FIXME
Note
|
getSchemaQuery is used when…FIXME
|
getTruncateQuery
Method
1 2 3 4 5 |
getTruncateQuery(table: String): String |
getTruncateQuery
…FIXME
Note
|
getTruncateQuery is used when…FIXME
|
beforeFetch
Method
1 2 3 4 5 |
beforeFetch(connection: Connection, properties: Map[String, String]): Unit |
beforeFetch
…FIXME
Note
|
beforeFetch is used when…FIXME
|
escapeSql
Internal Method
1 2 3 4 5 |
escapeSql(value: String): String |
escapeSql
…FIXME
Note
|
escapeSql is used when…FIXME
|