Class SqlToRelTestBase.MockViewExpander

  • All Implemented Interfaces:
    org.apache.calcite.plan.RelOptTable.ViewExpander
    Enclosing class:
    SqlToRelTestBase

    private static class SqlToRelTestBase.MockViewExpander
    extends java.lang.Object
    implements org.apache.calcite.plan.RelOptTable.ViewExpander
    RelOptTable.ViewExpander implementation for testing usage.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.calcite.prepare.Prepare.CatalogReader catalogReader  
      private org.apache.calcite.plan.RelOptCluster cluster  
      private org.apache.calcite.sql2rel.SqlToRelConverter.Config config  
      private org.apache.calcite.sql.validate.SqlValidator validator  
    • Constructor Summary

      Constructors 
      Constructor Description
      MockViewExpander​(org.apache.calcite.sql.validate.SqlValidator validator, org.apache.calcite.prepare.Prepare.CatalogReader catalogReader, org.apache.calcite.plan.RelOptCluster cluster, org.apache.calcite.sql2rel.SqlToRelConverter.Config config)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.rel.RelRoot expandView​(org.apache.calcite.rel.type.RelDataType rowType, java.lang.String queryString, java.util.List<java.lang.String> schemaPath, java.util.List<java.lang.String> viewPath)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • validator

        private final org.apache.calcite.sql.validate.SqlValidator validator
      • catalogReader

        private final org.apache.calcite.prepare.Prepare.CatalogReader catalogReader
      • cluster

        private final org.apache.calcite.plan.RelOptCluster cluster
      • config

        private final org.apache.calcite.sql2rel.SqlToRelConverter.Config config
    • Constructor Detail

      • MockViewExpander

        MockViewExpander​(org.apache.calcite.sql.validate.SqlValidator validator,
                         org.apache.calcite.prepare.Prepare.CatalogReader catalogReader,
                         org.apache.calcite.plan.RelOptCluster cluster,
                         org.apache.calcite.sql2rel.SqlToRelConverter.Config config)
    • Method Detail

      • expandView

        public org.apache.calcite.rel.RelRoot expandView​(org.apache.calcite.rel.type.RelDataType rowType,
                                                         java.lang.String queryString,
                                                         java.util.List<java.lang.String> schemaPath,
                                                         java.util.List<java.lang.String> viewPath)
        Specified by:
        expandView in interface org.apache.calcite.plan.RelOptTable.ViewExpander