Class CqlToSqlTypeConversionRules
java.lang.Object
org.apache.calcite.adapter.cassandra.CqlToSqlTypeConversionRules
CqlToSqlTypeConversionRules defines mappings from CQL types to
corresponding SQL types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CqlToSqlTypeConversionRules
instance()
Returns thesingleton
instance.lookup
(com.datastax.oss.driver.api.core.type.DataType name) Returns a correspondingSqlTypeName
for a given CQL type name.
-
Constructor Details
-
CqlToSqlTypeConversionRules
public CqlToSqlTypeConversionRules()
-
-
Method Details
-
instance
Returns thesingleton
instance. -
lookup
Returns a correspondingSqlTypeName
for a given CQL type name.- Parameters:
name
- the CQL type name to lookup- Returns:
- a corresponding SqlTypeName if found, ANY otherwise
-