public static final class RowFilter.CustomExpression extends RowFilter.Expression
RowFilter.Expression.Kindcolumn, operator, value| Constructor and Description |
|---|
CustomExpression(CFMetaData cfm,
IndexMetadata targetIndex,
java.nio.ByteBuffer value) |
| Modifier and Type | Method and Description |
|---|---|
IndexMetadata |
getTargetIndex() |
java.nio.ByteBuffer |
getValue() |
boolean |
isSatisfiedBy(CFMetaData metadata,
DecoratedKey partitionKey,
Row row)
Returns whether the provided row satisfied this expression or not.
|
protected RowFilter.Expression.Kind |
kind() |
java.lang.String |
toString() |
column, equals, getIndexValue, getValue, hashCode, isContains, isContainsKey, isCustom, isUserDefined, operator, validate, validateForIndexingpublic CustomExpression(CFMetaData cfm, IndexMetadata targetIndex, java.nio.ByteBuffer value)
public IndexMetadata getTargetIndex()
public java.nio.ByteBuffer getValue()
public java.lang.String toString()
toString in class java.lang.Objectprotected RowFilter.Expression.Kind kind()
kind in class RowFilter.Expressionpublic boolean isSatisfiedBy(CFMetaData metadata, DecoratedKey partitionKey, Row row)
RowFilter.ExpressionisSatisfiedBy in class RowFilter.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).Copyright © 2018 The Apache Software Foundation