Class MockCatalogReader.MockRelViewTable

    • Field Detail

      • viewTable

        private final org.apache.calcite.schema.impl.ViewTable viewTable
    • Constructor Detail

      • MockRelViewTable

        private MockRelViewTable​(org.apache.calcite.schema.impl.ViewTable viewTable,
                                 MockCatalogReader catalogReader,
                                 java.lang.String catalogName,
                                 java.lang.String schemaName,
                                 java.lang.String name,
                                 boolean stream,
                                 double rowCount,
                                 MockCatalogReader.ColumnResolver resolver,
                                 org.apache.calcite.sql2rel.InitializerExpressionFactory initializerExpressionFactory)
    • Method Detail

      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType()
        Specified by:
        getRowType in interface org.apache.calcite.plan.RelOptTable
        Specified by:
        getRowType in interface org.apache.calcite.sql.validate.SqlValidatorTable
        Overrides:
        getRowType in class MockCatalogReader.MockTable
      • toRel

        public org.apache.calcite.rel.RelNode toRel​(org.apache.calcite.plan.RelOptTable.ToRelContext context)
        Specified by:
        toRel in interface org.apache.calcite.plan.RelOptTable
        Overrides:
        toRel in class MockCatalogReader.MockTable
      • unwrap

        public <T> T unwrap​(java.lang.Class<T> clazz)
        Specified by:
        unwrap in interface org.apache.calcite.schema.Wrapper
        Overrides:
        unwrap in class MockCatalogReader.MockTable