Class ListPredicate

    • Constructor Detail

      • ListPredicate

        protected ListPredicate​(java.util.List<StarPredicate> predicateList)
    • Method Detail

      • 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 java.util.List<StarPredicate> getChildren()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.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
      • getOp

        protected abstract java.lang.String getOp()
      • describe

        public void describe​(java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object