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