java.lang.Object
org.gridgain.ignite.migrationtools.adapter.internal.sql.QueryTransformer
All Implemented Interfaces:
org.apache.calcite.sql.util.SqlVisitor<Object>

public class QueryTransformer extends Object implements org.apache.calcite.sql.util.SqlVisitor<Object>
This class is essentially a visitor for SQL nodes in a query. It transforms references/identifiers to Ignite2 adapted caches into their Ignite3 counterpart.
  • Field Details

    • SQL_PARSER_CONFIGURATION

      public static final org.apache.calcite.sql.parser.SqlParser.Config SQL_PARSER_CONFIGURATION
  • Constructor Details

    • QueryTransformer

      public QueryTransformer(String tableName, String ai2Schema, String ai2CacheName)
  • Method Details

    • hasRefTo_Key

      public boolean hasRefTo_Key()
    • hasRefTo_Val

      public boolean hasRefTo_Val()
    • visit

      public Object visit(org.apache.calcite.sql.SqlCall call)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlNodeList list)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlIdentifier identifier)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlLiteral literal)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlDataTypeSpec spec)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlDynamicParam param)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>
    • visit

      public Object visit(org.apache.calcite.sql.SqlIntervalQualifier qualifier)
      Specified by:
      visit in interface org.apache.calcite.sql.util.SqlVisitor<Object>