Class AbstractTable

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractTable()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Schema.TableType getJdbcTableType()
      Type of table.
      Statistic getStatistic()
      Returns a provider of statistics about this table.
      boolean isRolledUp​(java.lang.String column)
      Determines whether the given column has been rolled up.
      boolean rolledUpColumnValidInsideAgg​(java.lang.String column, SqlCall call, SqlNode parent, CalciteConnectionConfig config)
      Determines whether the given rolled up column can be used inside the given aggregate function.
      <C> C unwrap​(java.lang.Class<C> aClass)
      Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
      • Methods inherited from class java.lang.Object

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

      • AbstractTable

        protected AbstractTable()
    • Method Detail

      • getStatistic

        public Statistic getStatistic()
        Description copied from interface: Table
        Returns a provider of statistics about this table.
        Specified by:
        getStatistic in interface Table
      • unwrap

        public <C> C unwrap​(java.lang.Class<C> aClass)
        Description copied from interface: Wrapper
        Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.
        Specified by:
        unwrap in interface Wrapper
      • isRolledUp

        public boolean isRolledUp​(java.lang.String column)
        Description copied from interface: Table
        Determines whether the given column has been rolled up.
        Specified by:
        isRolledUp in interface Table
      • rolledUpColumnValidInsideAgg

        public boolean rolledUpColumnValidInsideAgg​(java.lang.String column,
                                                    SqlCall call,
                                                    SqlNode parent,
                                                    CalciteConnectionConfig config)
        Description copied from interface: Table
        Determines whether the given rolled up column can be used inside the given aggregate function. You can assume that isRolledUp(column) is true.
        Specified by:
        rolledUpColumnValidInsideAgg in interface Table
        Parameters:
        column - The column name for which isRolledUp is true
        call - The aggregate call
        parent - Parent node of call in the SqlNode tree
        config - Config settings. May be null
        Returns:
        true iff the given aggregate call is valid