Class ExplicitRules.Group

  • Enclosing class:
    ExplicitRules

    public static class ExplicitRules.Group
    extends java.lang.Object
    This class forms a collection of aggregate table explicit rules for a given cube.
    • Constructor Summary

      Constructors 
      Constructor Description
      Group​(RolapCube cube)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExclude​(mondrian.rolap.aggmatcher.ExplicitRules.Exclude exclude)
      Add an exclude rule.
      void addTableDef​(ExplicitRules.TableDef tableDef)
      Add a name or pattern (table) rule.
      boolean excludeTable​(java.lang.String tableName)
      Returns whether the given tableName is excluded.
      java.lang.String getCatalogName()
      Get the database catalog name associated with this Group's RolapStar's fact table.
      RolapCube getCube()
      Get the RolapCube associated with this Group.
      ExplicitRules.TableDef getIncludeByTableDef​(java.lang.String tableName)
      Is the given tableName included either by exact name or by pattern.
      java.lang.String getName()
      Get the name of this Group (its the name of its RolapCube).
      java.lang.String getSchemaName()
      Get the database schema name associated with this Group's RolapStar's fact table.
      RolapStar getStar()
      Get the RolapStar associated with this Group's RolapCube.
      java.lang.String getTableName()
      Get the database table name associated with this Group's RolapStar's fact table.
      boolean hasRules()
      Are there any rules associated with this Group.
      static ExplicitRules.Group make​(RolapCube cube, MondrianDef.Cube xmlCube)
      Make an ExplicitRules.Group for a given RolapCube given the MondrianDef.Cube associated with that cube.
      void print​(java.io.PrintWriter pw, java.lang.String prefix)  
      java.lang.String toString()  
      void validate​(MessageRecorder msgRecorder)
      Validate the content and structure of this Group.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getCube

        public RolapCube getCube()
        Get the RolapCube associated with this Group.
      • getStar

        public RolapStar getStar()
        Get the RolapStar associated with this Group's RolapCube.
      • getName

        public java.lang.String getName()
        Get the name of this Group (its the name of its RolapCube).
      • hasRules

        public boolean hasRules()
        Are there any rules associated with this Group.
      • addExclude

        public void addExclude​(mondrian.rolap.aggmatcher.ExplicitRules.Exclude exclude)
        Add an exclude rule.
      • addTableDef

        public void addTableDef​(ExplicitRules.TableDef tableDef)
        Add a name or pattern (table) rule.
      • excludeTable

        public boolean excludeTable​(java.lang.String tableName)
        Returns whether the given tableName is excluded.
      • getIncludeByTableDef

        public ExplicitRules.TableDef getIncludeByTableDef​(java.lang.String tableName)
        Is the given tableName included either by exact name or by pattern.
      • getTableName

        public java.lang.String getTableName()
        Get the database table name associated with this Group's RolapStar's fact table.
      • getSchemaName

        public java.lang.String getSchemaName()
        Get the database schema name associated with this Group's RolapStar's fact table.
      • getCatalogName

        public java.lang.String getCatalogName()
        Get the database catalog name associated with this Group's RolapStar's fact table. Note: this currently this always returns null.
      • validate

        public void validate​(MessageRecorder msgRecorder)
        Validate the content and structure of this Group.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • print

        public void print​(java.io.PrintWriter pw,
                          java.lang.String prefix)