public class AggregatedDialect extends JdbcDialect
param: dialects List of dialects.
| Constructor and Description |
|---|
AggregatedDialect(scala.collection.immutable.List<JdbcDialect> dialects) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String url)
Check if this dialect instance can handle a certain jdbc url.
|
scala.Option<DataType> |
getCatalystType(int sqlType,
String typeName,
int size,
MetadataBuilder md)
Get the custom datatype mapping for the given jdbc meta information.
|
scala.Option<JdbcType> |
getJDBCType(DataType dt)
Retrieve the jdbc / sql type for a given datatype.
|
beforeFetch, getSchemaQuery, getTableExistsQuery, isCascadingTruncateTable, quoteIdentifierpublic AggregatedDialect(scala.collection.immutable.List<JdbcDialect> dialects)
public boolean canHandle(String url)
JdbcDialectcanHandle in class JdbcDialecturl - the jdbc url.public scala.Option<DataType> getCatalystType(int sqlType, String typeName, int size, MetadataBuilder md)
JdbcDialectgetCatalystType in class JdbcDialectsqlType - The sql type (see java.sql.Types)typeName - The sql type name (e.g. "BIGINT UNSIGNED")size - The size of the type.md - Result metadata associated with this type.DataType)
or null if the default type mapping should be used.public scala.Option<JdbcType> getJDBCType(DataType dt)
JdbcDialectgetJDBCType in class JdbcDialectdt - The datatype (e.g. StringType)