Class CqlToSqlTypeConversionRules

java.lang.Object
org.apache.calcite.adapter.cassandra.CqlToSqlTypeConversionRules

public class CqlToSqlTypeConversionRules extends Object
CqlToSqlTypeConversionRules defines mappings from CQL types to corresponding SQL types.
  • Constructor Details

    • CqlToSqlTypeConversionRules

      public CqlToSqlTypeConversionRules()
  • Method Details

    • instance

      public static CqlToSqlTypeConversionRules instance()
      Returns the singleton instance.
    • lookup

      public SqlTypeName lookup(com.datastax.oss.driver.api.core.type.DataType name)
      Returns a corresponding SqlTypeName for a given CQL type name.
      Parameters:
      name - the CQL type name to lookup
      Returns:
      a corresponding SqlTypeName if found, ANY otherwise