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(CFMetaData metadata,
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. |
boolean |
isCustom() |
abstract boolean |
isSatisfiedBy(CFMetaData metadata,
DecoratedKey partitionKey,
Row row)
Returns whether the provided row satisfied this expression or not.
|
boolean |
isUserDefined() |
protected abstract RowFilter.Expression.Kind |
kind() |
Operator |
operator() |
void |
validate() |
void |
validateForIndexing()
Deprecated.
|
protected final ColumnDefinition column
protected final Operator operator
protected final java.nio.ByteBuffer value
protected Expression(ColumnDefinition column, Operator operator, java.nio.ByteBuffer value)
protected abstract RowFilter.Expression.Kind kind()
public boolean isCustom()
public boolean isUserDefined()
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 validate()
@Deprecated public void validateForIndexing()
public abstract boolean isSatisfiedBy(CFMetaData metadata, 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(CFMetaData metadata, 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 © 2020 The Apache Software Foundation