public abstract static class RowFilter.Expression
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
RowFilter.Expression.Kind |
Modifier and Type | Field and Description |
---|---|
protected ColumnDefinition |
column |
protected Operator |
operator |
protected java.nio.ByteBuffer |
value |
Modifier | Constructor and Description |
---|---|
protected |
Expression(ColumnDefinition column,
Operator operator,
java.nio.ByteBuffer value) |
Modifier and Type | Method and Description |
---|---|
ColumnDefinition |
column() |
boolean |
equals(java.lang.Object o) |
java.nio.ByteBuffer |
getIndexValue()
If this expression is used to query an index, the value to use as
partition key for that index query.
|
protected java.nio.ByteBuffer |
getValue(DecoratedKey partitionKey,
Row row) |
int |
hashCode() |
boolean |
isContains()
Checks if the operator of this
IndexExpression is a CONTAINS operator. |
boolean |
isContainsKey()
Checks if the operator of this
IndexExpression is a CONTAINS_KEY operator. |
abstract boolean |
isSatisfiedBy(DecoratedKey partitionKey,
Row row)
Returns whether the provided row satisfied this expression or not.
|
Operator |
operator() |
void |
validateForIndexing() |
protected final ColumnDefinition column
protected final Operator operator
protected final java.nio.ByteBuffer value
protected Expression(ColumnDefinition column, Operator operator, java.nio.ByteBuffer value)
public ColumnDefinition column()
public Operator operator()
public boolean isContains()
IndexExpression
is a CONTAINS
operator.true
if the operator of this IndexExpression
is a CONTAINS
operator, false
otherwise.public boolean isContainsKey()
IndexExpression
is a CONTAINS_KEY
operator.true
if the operator of this IndexExpression
is a CONTAINS_KEY
operator, false
otherwise.public java.nio.ByteBuffer getIndexValue()
public void validateForIndexing() throws InvalidRequestException
InvalidRequestException
public abstract boolean isSatisfiedBy(DecoratedKey partitionKey, Row row)
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).protected java.nio.ByteBuffer getValue(DecoratedKey partitionKey, Row row)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2015 The Apache Software Foundation