Package org.apache.cassandra.db.filter
Class RowFilter.CustomExpression
java.lang.Object
org.apache.cassandra.db.filter.RowFilter.Expression
org.apache.cassandra.db.filter.RowFilter.CustomExpression
- Enclosing class:
- RowFilter
A custom index expression for use with 2i implementations which support custom syntax and which are not
necessarily linked to a single column in the base table.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.db.filter.RowFilter.Expression
RowFilter.Expression.Kind -
Field Summary
Fields inherited from class org.apache.cassandra.db.filter.RowFilter.Expression
column, operator, value -
Constructor Summary
ConstructorsConstructorDescriptionCustomExpression(TableMetadata table, IndexMetadata targetIndex, ByteBuffer value) -
Method Summary
Modifier and TypeMethodDescriptiongetValue()booleanisSatisfiedBy(TableMetadata metadata, DecoratedKey partitionKey, Row row, long nowInSec) Returns whether the provided row satisfied this expression or not.protected RowFilter.Expression.Kindkind()protected StringtoString(boolean cql) Methods inherited from class org.apache.cassandra.db.filter.RowFilter.Expression
column, equals, getIndexValue, getValue, hashCode, isContains, isContainsKey, isCustom, isUserDefined, operator, toCQLString, toString, validate, validateForIndexing
-
Constructor Details
-
CustomExpression
-
-
Method Details
-
getTargetIndex
-
getValue
-
toString
- Specified by:
toStringin classRowFilter.Expression
-
kind
- Specified by:
kindin classRowFilter.Expression
-
isSatisfiedBy
public boolean isSatisfiedBy(TableMetadata metadata, DecoratedKey partitionKey, Row row, long nowInSec) Description copied from class:RowFilter.ExpressionReturns whether the provided row satisfied this expression or not.- Specified by:
isSatisfiedByin classRowFilter.ExpressionpartitionKey- 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.
-