Package ai.dat.adapter.mysql
Class MySqlSemanticAdapter
java.lang.Object
ai.dat.adapter.mysql.MySqlSemanticAdapter
- All Implemented Interfaces:
SemanticAdapter
MySQL数据库语义适配器
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyTimeGranularity(String dateExpr, Dimension.TypeParams.TimeGranularity granularity) org.apache.calcite.sql.SqlDialecttoAnsiSqlType(String columnTypeName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.dat.core.adapter.SemanticAdapter
getDialectName, quoteIdentifier
-
Field Details
-
DEFAULT
public static final org.apache.calcite.sql.SqlDialect DEFAULT
-
-
Constructor Details
-
MySqlSemanticAdapter
public MySqlSemanticAdapter()
-
-
Method Details
-
getSqlDialect
public org.apache.calcite.sql.SqlDialect getSqlDialect()- Specified by:
getSqlDialectin interfaceSemanticAdapter
-
applyTimeGranularity
public String applyTimeGranularity(String dateExpr, Dimension.TypeParams.TimeGranularity granularity) - Specified by:
applyTimeGranularityin interfaceSemanticAdapter
-
toAnsiSqlType
- Specified by:
toAnsiSqlTypein interfaceSemanticAdapter
-