public abstract static class MultiColumnRestriction.INRestriction extends MultiColumnRestriction
MultiColumnRestriction.EQRestriction, MultiColumnRestriction.INRestriction, MultiColumnRestriction.InRestrictionWithMarker, MultiColumnRestriction.InRestrictionWithValues, MultiColumnRestriction.NotNullRestriction, MultiColumnRestriction.SliceRestriction
columnDefs
Constructor and Description |
---|
INRestriction(java.util.List<ColumnMetadata> columnDefs) |
Modifier and Type | Method and Description |
---|---|
void |
addRowFilterTo(RowFilter filter,
IndexRegistry indexRegistry,
QueryOptions options)
Adds to the specified row filter the expressions corresponding to this
Restriction . |
MultiCBuilder |
appendTo(MultiCBuilder builder,
QueryOptions options)
Appends the values of this
SingleRestriction to the specified builder. |
SingleRestriction |
doMergeWith(SingleRestriction otherRestriction) |
boolean |
isIN() |
protected boolean |
isSupportedBy(Index index)
Check if this type of restriction is supported for by the specified index.
|
protected abstract java.util.List<java.util.List<java.nio.ByteBuffer>> |
splitValues(QueryOptions options) |
getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendBoundTo, hasBound, isContains, isEQ, isInclusive, isLIKE, isNotNull, isSlice
addFunctionsTo, isOnToken
public INRestriction(java.util.List<ColumnMetadata> columnDefs)
public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
SingleRestriction
to the specified builder.builder
- the MultiCBuilder
to append to.options
- the query optionsMultiCBuilder
public boolean isIN()
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
doMergeWith
in class MultiColumnRestriction
protected boolean isSupportedBy(Index index)
MultiColumnRestriction
isSupportedBy
in class MultiColumnRestriction
index
- the secondary indextrue
this type of restriction is supported by the specified index,
false
otherwise.public final void addRowFilterTo(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Restriction
Restriction
.filter
- the row filter to add expressions toindexRegistry
- the index registryoptions
- the query optionsprotected abstract java.util.List<java.util.List<java.nio.ByteBuffer>> splitValues(QueryOptions options)
Copyright © 2009- The Apache Software Foundation