Class MockCatalogReader.MockTable.ModifiableTable

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ModifiableTable​(java.lang.String tableName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <E> org.apache.calcite.linq4j.Queryable<E> asQueryable​(org.apache.calcite.linq4j.QueryProvider queryProvider, org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName)  
      org.apache.calcite.schema.Table extend​(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> fields)  
      java.lang.reflect.Type getElementType()  
      org.apache.calcite.linq4j.tree.Expression getExpression​(org.apache.calcite.schema.SchemaPlus schema, java.lang.String tableName, java.lang.Class clazz)  
      int getExtendedColumnOffset()  
      java.util.Collection getModifiableCollection()  
      org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)  
      boolean isRolledUp​(java.lang.String column)  
      boolean rolledUpColumnValidInsideAgg​(java.lang.String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)  
      <C> C unwrap​(java.lang.Class<C> aClass)  
      • Methods inherited from class org.apache.calcite.schema.impl.AbstractTable

        getJdbcTableType, getStatistic
      • 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, getStatistic
    • Constructor Detail

      • ModifiableTable

        protected ModifiableTable​(java.lang.String tableName)
    • Method Detail

      • getRowType

        public org.apache.calcite.rel.type.RelDataType getRowType​(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
        Specified by:
        getRowType in interface org.apache.calcite.schema.Table
      • getModifiableCollection

        public java.util.Collection getModifiableCollection()
        Specified by:
        getModifiableCollection in interface org.apache.calcite.schema.ModifiableTable
      • asQueryable

        public <E> org.apache.calcite.linq4j.Queryable<E> asQueryable​(org.apache.calcite.linq4j.QueryProvider queryProvider,
                                                                      org.apache.calcite.schema.SchemaPlus schema,
                                                                      java.lang.String tableName)
        Specified by:
        asQueryable in interface org.apache.calcite.schema.QueryableTable
      • getElementType

        public java.lang.reflect.Type getElementType()
        Specified by:
        getElementType in interface org.apache.calcite.schema.QueryableTable
      • getExpression

        public org.apache.calcite.linq4j.tree.Expression getExpression​(org.apache.calcite.schema.SchemaPlus schema,
                                                                       java.lang.String tableName,
                                                                       java.lang.Class clazz)
        Specified by:
        getExpression in interface org.apache.calcite.schema.QueryableTable
      • unwrap

        public <C> C unwrap​(java.lang.Class<C> aClass)
        Specified by:
        unwrap in interface org.apache.calcite.schema.Wrapper
        Overrides:
        unwrap in class org.apache.calcite.schema.impl.AbstractTable
      • extend

        public org.apache.calcite.schema.Table extend​(java.util.List<org.apache.calcite.rel.type.RelDataTypeField> fields)
        Specified by:
        extend in interface org.apache.calcite.schema.ExtensibleTable
      • getExtendedColumnOffset

        public int getExtendedColumnOffset()
        Specified by:
        getExtendedColumnOffset in interface org.apache.calcite.schema.ExtensibleTable
      • isRolledUp

        public boolean isRolledUp​(java.lang.String column)
        Specified by:
        isRolledUp in interface org.apache.calcite.schema.Table
        Overrides:
        isRolledUp in class org.apache.calcite.schema.impl.AbstractTable
      • rolledUpColumnValidInsideAgg

        public boolean rolledUpColumnValidInsideAgg​(java.lang.String column,
                                                    org.apache.calcite.sql.SqlCall call,
                                                    org.apache.calcite.sql.SqlNode parent,
                                                    org.apache.calcite.config.CalciteConnectionConfig config)
        Specified by:
        rolledUpColumnValidInsideAgg in interface org.apache.calcite.schema.Table
        Overrides:
        rolledUpColumnValidInsideAgg in class org.apache.calcite.schema.impl.AbstractTable