Class SingleColumnRestriction.ContainsRestriction
java.lang.Object
org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
org.apache.cassandra.cql3.restrictions.SingleColumnRestriction.ContainsRestriction
- All Implemented Interfaces:
Restriction,SingleRestriction
- Enclosing class:
- SingleColumnRestriction
public static final class SingleColumnRestriction.ContainsRestriction
extends SingleColumnRestriction
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
SingleColumnRestriction.AnnRestriction, SingleColumnRestriction.ContainsRestriction, SingleColumnRestriction.EQRestriction, SingleColumnRestriction.INRestriction, SingleColumnRestriction.InRestrictionWithMarker, SingleColumnRestriction.InRestrictionWithValues, SingleColumnRestriction.IsNotNullRestriction, SingleColumnRestriction.LikeRestriction, SingleColumnRestriction.SliceRestriction -
Field Summary
Fields inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
columnDef -
Constructor Summary
ConstructorsConstructorDescriptionContainsRestriction(ColumnMetadata columnDef, Term t, boolean isKey) ContainsRestriction(ColumnMetadata columnDef, Term mapKey, Term mapValue) -
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.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.booleanbooleanisInclusive(Bound b) Checks if the specified bound is inclusive or not.protected booleanisSupportedBy(Index index) Check if this type of restriction is supported by the specified index.booleanneedsFiltering(Index.Group indexGroup) Returns whether this restriction would need filtering if the specified index group were used.intintinttoString()Methods inherited from class org.apache.cassandra.cql3.restrictions.SingleColumnRestriction
findSupportingIndex, findSupportingIndexFromQueryPlan, getColumnDefs, getFirstColumn, getLastColumn, hasSupportingIndex, mergeWithMethods 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, isEQ, isEqualityBased, isIN, isLIKE, isMultiColumn, isNotNull, isSlice
-
Constructor Details
-
ContainsRestriction
-
ContainsRestriction
-
-
Method Details
-
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
-
isContains
public boolean isContains() -
doMergeWith
- Specified by:
doMergeWithin classSingleColumnRestriction
-
addToRowFilter
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
-
isSupportedBy
Description copied from class:SingleColumnRestrictionCheck if this type of restriction is supported by the specified index.- Specified by:
isSupportedByin classSingleColumnRestriction- Parameters:
index- the secondary index- Returns:
truethis type of restriction is supported by the specified index,falseotherwise.
-
needsFiltering
Description copied from interface:RestrictionReturns whether this restriction would need filtering if the specified index group were used.- Specified by:
needsFilteringin interfaceRestriction- Overrides:
needsFilteringin classSingleColumnRestriction- Parameters:
indexGroup- an index group- Returns:
trueif this would need filtering ifindexGroupwere used,falseotherwise
-
numberOfValues
public int numberOfValues() -
numberOfKeys
public int numberOfKeys() -
numberOfEntries
public int numberOfEntries() -
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
-
toString
-
hasBound
Description copied from interface:SingleRestrictionChecks if the specified bound is set or not.- Parameters:
b- the bound type- Returns:
trueif the specified bound is set,falseotherwise
-
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
-
isInclusive
Description copied from interface:SingleRestrictionChecks if the specified bound is inclusive or not.- Parameters:
b- the bound type- Returns:
trueif the specified bound is inclusive,falseotherwise
-