Class MultiColumnRestriction.SliceRestriction
java.lang.Object
org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
org.apache.cassandra.cql3.restrictions.MultiColumnRestriction.SliceRestriction
- All Implemented Interfaces:
Restriction,SingleRestriction
- Enclosing class:
- 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
ConstructorsConstructorDescriptionSliceRestriction(List<ColumnMetadata> columnDefs, Bound bound, boolean inclusive, Term term) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunctionsTo(List<Function> functions) Adds all functions (native and user-defined) used by any component of the restriction to the specified list.final voidaddToRowFilter(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options) Adds to the specified row filter the expressions corresponding to thisRestriction.appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options) Appends the values of theSingleRestrictionfor the specified bound to the specified builder.appendTo(MultiCBuilder builder, QueryOptions options) Appends the values of thisSingleRestrictionto the specified builder.doMergeWith(SingleRestriction otherRestriction) booleanChecks if the specified bound is set or not.booleanisInclusive(Bound bound) Checks if the specified bound is inclusive or not.booleanisSlice()protected booleanisSupportedBy(Index index, ColumnMetadata column) toString()Methods inherited from class org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
findSupportingIndex, findSupportingIndexFromQueryPlan, getColumnDefs, getColumnsInCommons, getFirstColumn, getLastColumn, hasSupportingIndex, isMultiColumn, mergeWith, needsFilteringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.restrictions.Restriction
isOnTokenMethods inherited from interface org.apache.cassandra.cql3.restrictions.SingleRestriction
isANN, isContains, isEQ, isEqualityBased, isIN, isLIKE, isNotNull
-
Constructor Details
-
SliceRestriction
-
-
Method Details
-
isSlice
public boolean isSlice() -
appendTo
Description copied from interface:SingleRestrictionAppends the values of thisSingleRestrictionto the specified builder.- Parameters:
builder- theMultiCBuilderto append to.options- the query options- Returns:
- the
MultiCBuilder
-
appendBoundTo
Description copied from interface:SingleRestrictionAppends the values of theSingleRestrictionfor the specified bound to the specified builder.- Parameters:
builder- theMultiCBuilderto append to.bound- the boundoptions- the query options- Returns:
- the
MultiCBuilder
-
isSupportedBy
- Specified by:
isSupportedByin classMultiColumnRestriction
-
hasBound
Description copied from interface:SingleRestrictionChecks if the specified bound is set or not.- Parameters:
bound- the bound type- Returns:
trueif the specified bound is set,falseotherwise
-
addFunctionsTo
Description copied from interface:RestrictionAdds all functions (native and user-defined) used by any component of the restriction to the specified list.- Parameters:
functions- the list to add to
-
isInclusive
Description copied from interface:SingleRestrictionChecks if the specified bound is inclusive or not.- Parameters:
bound- the bound type- Returns:
trueif the specified bound is inclusive,falseotherwise
-
doMergeWith
- Specified by:
doMergeWithin classMultiColumnRestriction
-
addToRowFilter
public final void addToRowFilter(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options) Description copied from interface:RestrictionAdds 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
-
toString
- Overrides:
toStringin classMultiColumnRestriction
-