Class ExplainHandler


public class ExplainHandler extends DefaultSqlHandler
  • Constructor Details

  • Method Details

    • getPlan

      public PhysicalPlan getPlan(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.ValidationException, org.apache.calcite.tools.RelConversionException, IOException, ForemanSetupException
      Overrides:
      getPlan in class DefaultSqlHandler
      Throws:
      org.apache.calcite.tools.ValidationException
      org.apache.calcite.tools.RelConversionException
      IOException
      ForemanSetupException
    • rewrite

      public org.apache.calcite.sql.SqlNode rewrite(org.apache.calcite.sql.SqlNode sqlNode) throws org.apache.calcite.tools.RelConversionException, ForemanSetupException
      Description copied from class: DefaultSqlHandler
      Rewrite the parse tree. Used before validating the parse tree. Useful if a particular statement needs to converted into another statement.
      Overrides:
      rewrite in class DefaultSqlHandler
      Parameters:
      sqlNode - sql parse tree to be rewritten
      Returns:
      Rewritten sql parse tree
      Throws:
      org.apache.calcite.tools.RelConversionException
      ForemanSetupException
    • printPlan

      public static void printPlan(Prel node, QueryContext context)
    • printPlan

      public static void printPlan(org.apache.calcite.rel.RelNode node)