Class RowFilter.Expression

    • Field Detail

      • operator

        protected final Operator operator
      • value

        protected final java.nio.ByteBuffer value
    • Constructor Detail

    • Method Detail

      • isCustom

        public boolean isCustom()
      • isUserDefined

        public boolean isUserDefined()
      • isContains

        public boolean isContains()
        Checks if the operator of this IndexExpression is a CONTAINS operator.
        Returns:
        true if the operator of this IndexExpression is a CONTAINS operator, false otherwise.
      • isContainsKey

        public boolean isContainsKey()
        Checks if the operator of this IndexExpression is a CONTAINS_KEY operator.
        Returns:
        true if the operator of this IndexExpression is a CONTAINS_KEY operator, false otherwise.
      • getIndexValue

        public java.nio.ByteBuffer getIndexValue()
        If this expression is used to query an index, the value to use as partition key for that index query.
      • validate

        public void validate()
      • validateForIndexing

        @Deprecated
        public void validateForIndexing()
        Deprecated.
      • isSatisfiedBy

        public abstract boolean isSatisfiedBy​(TableMetadata metadata,
                                              DecoratedKey partitionKey,
                                              Row row)
        Returns whether the provided row satisfied this expression or not.
        Parameters:
        metadata -
        partitionKey - the partition key for row to check.
        row - the row to check. It should *not* contain deleted cells (i.e. it should come from a RowIterator).
        Returns:
        whether the row is satisfied by this expression.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object