Class MockCatalogReader.MockModifiableViewRelOptTable.MockModifiableViewTable

  • All Implemented Interfaces:
    org.apache.calcite.schema.ModifiableView, org.apache.calcite.schema.QueryableTable, org.apache.calcite.schema.Table, org.apache.calcite.schema.TranslatableTable, org.apache.calcite.schema.Wrapper
    Enclosing class:
    MockCatalogReader.MockModifiableViewRelOptTable

    public static class MockCatalogReader.MockModifiableViewRelOptTable.MockModifiableViewTable
    extends org.apache.calcite.schema.impl.ModifiableViewTable
    A mock of ModifiableViewTable that can unwrap a mock RelOptTable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.calcite.rex.RexNode constraint  
      • Fields inherited from class org.apache.calcite.adapter.java.AbstractQueryableTable

        elementType
    • Constructor Summary

      Constructors 
      Constructor Description
      MockModifiableViewTable​(java.lang.reflect.Type elementType, org.apache.calcite.rel.type.RelProtoDataType rowType, java.lang.String viewSql, java.util.List<java.lang.String> schemaPath, java.util.List<java.lang.String> viewPath, org.apache.calcite.schema.Table table, org.apache.calcite.schema.Path tablePath, org.apache.calcite.rex.RexNode constraint, org.apache.calcite.util.ImmutableIntList columnMapping)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.calcite.schema.impl.ModifiableViewTable extend​(org.apache.calcite.schema.Table extendedTable, org.apache.calcite.rel.type.RelProtoDataType protoRowType, org.apache.calcite.util.ImmutableIntList newColumnMapping)  
      • Methods inherited from class org.apache.calcite.schema.impl.ModifiableViewTable

        extend, getColumnMapping, getConstraint, getTable, getTablePath, unwrap
      • Methods inherited from class org.apache.calcite.schema.impl.ViewTable

        asQueryable, getJdbcTableType, getRowType, getSchemaPath, getViewPath, getViewSql, toRel, viewMacro, viewMacro, viewMacro
      • Methods inherited from class org.apache.calcite.adapter.java.AbstractQueryableTable

        getElementType, getExpression
      • Methods inherited from class org.apache.calcite.schema.impl.AbstractTable

        getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.calcite.schema.Table

        getJdbcTableType, getRowType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
    • Field Detail

      • constraint

        private final org.apache.calcite.rex.RexNode constraint
    • Constructor Detail

      • MockModifiableViewTable

        MockModifiableViewTable​(java.lang.reflect.Type elementType,
                                org.apache.calcite.rel.type.RelProtoDataType rowType,
                                java.lang.String viewSql,
                                java.util.List<java.lang.String> schemaPath,
                                java.util.List<java.lang.String> viewPath,
                                org.apache.calcite.schema.Table table,
                                org.apache.calcite.schema.Path tablePath,
                                org.apache.calcite.rex.RexNode constraint,
                                org.apache.calcite.util.ImmutableIntList columnMapping)
    • Method Detail

      • extend

        public org.apache.calcite.schema.impl.ModifiableViewTable extend​(org.apache.calcite.schema.Table extendedTable,
                                                                         org.apache.calcite.rel.type.RelProtoDataType protoRowType,
                                                                         org.apache.calcite.util.ImmutableIntList newColumnMapping)
        Overrides:
        extend in class org.apache.calcite.schema.impl.ModifiableViewTable