Class ListPredicate

java.lang.Object
mondrian.rolap.agg.ListPredicate
All Implemented Interfaces:
StarPredicate
Direct Known Subclasses:
AndPredicate, OrPredicate

public abstract class ListPredicate extends Object implements StarPredicate
Base class for AndPredicate and OrPredicate.
Author:
jhyde
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getConstrainedColumnList

      public List<RolapStar.Column> getConstrainedColumnList()
      Description copied from interface: StarPredicate
      Returns a list of constrained columns.
      Specified by:
      getConstrainedColumnList in interface StarPredicate
      Returns:
      List of constrained columns
    • getConstrainedColumnBitKey

      public BitKey getConstrainedColumnBitKey()
      Description copied from interface: StarPredicate
      Returns a bitmap of constrained columns to speed up comparison
      Specified by:
      getConstrainedColumnBitKey in interface StarPredicate
      Returns:
      bitmap representing all constraining columns.
    • getChildren

      public List<StarPredicate> getChildren()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equalConstraint

      public boolean equalConstraint(StarPredicate that)
      Description copied from interface: StarPredicate
      Returns whether this Predicate has the same constraining effect as the other constraint. This is weaker than Object.equals(Object): it is possible for two different members to constrain the same column in the same way.
      Specified by:
      equalConstraint in interface StarPredicate
      Parameters:
      that - Other predicate
      Returns:
      whether the other predicate is equivalent
    • minus

      public StarPredicate minus(StarPredicate predicate)
      Description copied from interface: StarPredicate
      Returns the logical inverse of this Predicate. The result is a Predicate which holds whenever this predicate holds but the other does not.
      Specified by:
      minus in interface StarPredicate
      Parameters:
      predicate - Predicate
      Returns:
      Combined predicate
    • toSql

      public void toSql(SqlQuery sqlQuery, StringBuilder buf)
      Specified by:
      toSql in interface StarPredicate
    • getOp

      protected abstract String getOp()
    • describe

      public void describe(StringBuilder buf)
      Description copied from interface: StarPredicate
      Appends a description of this predicate to a StringBuilder. For example:
      • =any
      • =5
      • in (2, 4, 6)
      Specified by:
      describe in interface StarPredicate
      Parameters:
      buf - Builder to append to
    • toString

      public String toString()
      Overrides:
      toString in class Object