Class MultiColumnRestriction.INRestriction
- java.lang.Object
-
- org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
-
- org.apache.cassandra.cql3.restrictions.MultiColumnRestriction.INRestriction
-
- All Implemented Interfaces:
Restriction
,SingleRestriction
- Direct Known Subclasses:
MultiColumnRestriction.InRestrictionWithMarker
,MultiColumnRestriction.InRestrictionWithValues
- Enclosing class:
- MultiColumnRestriction
public abstract static class MultiColumnRestriction.INRestriction extends MultiColumnRestriction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
MultiColumnRestriction.EQRestriction, MultiColumnRestriction.INRestriction, MultiColumnRestriction.InRestrictionWithMarker, MultiColumnRestriction.InRestrictionWithValues, MultiColumnRestriction.NotNullRestriction, MultiColumnRestriction.SliceRestriction
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
columnDefs
-
-
Constructor Summary
Constructors Constructor Description INRestriction(java.util.List<ColumnMetadata> columnDefs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addToRowFilter(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Adds to the specified row filter the expressions corresponding to thisRestriction
.MultiCBuilder
appendTo(MultiCBuilder builder, QueryOptions options)
Appends the values of thisSingleRestriction
to the specified builder.SingleRestriction
doMergeWith(SingleRestriction otherRestriction)
boolean
isIN()
protected boolean
isSupportedBy(Index index, ColumnMetadata column)
protected abstract java.util.List<java.util.List<java.nio.ByteBuffer>>
splitValues(QueryOptions options)
-
Methods inherited from class org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
findSupportingIndex, findSupportingIndexFromQueryPlan, getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith, needsFiltering, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.restrictions.Restriction
addFunctionsTo, isOnToken
-
Methods inherited from interface org.apache.cassandra.cql3.restrictions.SingleRestriction
appendBoundTo, hasBound, isANN, isContains, isEQ, isEqualityBased, isInclusive, isLIKE, isNotNull, isSlice
-
-
-
-
Constructor Detail
-
INRestriction
public INRestriction(java.util.List<ColumnMetadata> columnDefs)
-
-
Method Detail
-
appendTo
public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
Appends the values of thisSingleRestriction
to the specified builder.- Parameters:
builder
- theMultiCBuilder
to append to.options
- the query options- Returns:
- the
MultiCBuilder
-
isIN
public boolean isIN()
-
doMergeWith
public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
- Specified by:
doMergeWith
in classMultiColumnRestriction
-
isSupportedBy
protected boolean isSupportedBy(Index index, ColumnMetadata column)
- Specified by:
isSupportedBy
in classMultiColumnRestriction
-
addToRowFilter
public final void addToRowFilter(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
Description copied from interface:Restriction
Adds to the specified row filter the expressions corresponding to thisRestriction
.- Parameters:
filter
- the row filter to add expressions toindexRegistry
- the index registryoptions
- the query options
-
splitValues
protected abstract java.util.List<java.util.List<java.nio.ByteBuffer>> splitValues(QueryOptions options)
-
-