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(java.lang.String url)
Check if this dialect instance can handle a certain jdbc url.
|
scala.Option<DataType> |
getCatalystType(int sqlType,
java.lang.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, getTableExistsQuery, quoteIdentifier
public AggregatedDialect(scala.collection.immutable.List<JdbcDialect> dialects)
public boolean canHandle(java.lang.String url)
JdbcDialect
canHandle
in class JdbcDialect
url
- the jdbc url.public scala.Option<DataType> getCatalystType(int sqlType, java.lang.String typeName, int size, MetadataBuilder md)
JdbcDialect
getCatalystType
in class JdbcDialect
sqlType
- 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)
JdbcDialect
getJDBCType
in class JdbcDialect
dt
- The datatype (e.g. StringType
)