Class TokenRestriction.EQRestriction
java.lang.Object
org.apache.cassandra.cql3.restrictions.TokenRestriction
org.apache.cassandra.cql3.restrictions.TokenRestriction.EQRestriction
- All Implemented Interfaces:
Restriction,Restrictions
- Enclosing class:
- TokenRestriction
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.restrictions.TokenRestriction
TokenRestriction.EQRestriction, TokenRestriction.SliceRestriction -
Field Summary
Fields inherited from class org.apache.cassandra.cql3.restrictions.TokenRestriction
columnDefs, metadata -
Constructor Summary
ConstructorsConstructorDescriptionEQRestriction(TableMetadata table, List<ColumnMetadata> columnDefs, Term value) -
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.bounds(Bound b, QueryOptions options) protected org.apache.cassandra.cql3.restrictions.PartitionKeyRestrictionsdoMergeWith(TokenRestriction otherRestriction) Merges this restriction with the specifiedTokenRestriction.booleanbooleanChecks if any of the underlying restrictions is a CONTAINS / CONTAINS KEY restriction.booleanisInclusive(Bound b) values(QueryOptions options, ClientState state) Methods inherited from class org.apache.cassandra.cql3.restrictions.TokenRestriction
addToRowFilter, findSupportingIndex, findSupportingIndexFromQueryPlan, getColumnDefs, getColumnNamesAsString, getFirstColumn, getLastColumn, getRestrictions, hasIN, hasOnlyEqualityRestrictions, hasSlice, hasSupportingIndex, hasUnrestrictedPartitionKeyComponents, isEmpty, isOnToken, mergeWith, needFiltering, needsFiltering, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.restrictions.Restrictions
getColumnDefinitions
-
Constructor Details
-
EQRestriction
-
-
Method Details
-
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
-
doMergeWith
protected org.apache.cassandra.cql3.restrictions.PartitionKeyRestrictions doMergeWith(TokenRestriction otherRestriction) throws InvalidRequestException Description copied from class:TokenRestrictionMerges this restriction with the specifiedTokenRestriction.- Specified by:
doMergeWithin classTokenRestriction- Parameters:
otherRestriction- theTokenRestrictionto merge with.- Throws:
InvalidRequestException
-
bounds
- Throws:
InvalidRequestException
-
hasBound
-
isInclusive
-
values
public List<ByteBuffer> values(QueryOptions options, ClientState state) throws InvalidRequestException - Throws:
InvalidRequestException
-
hasContains
public boolean hasContains()Description copied from interface:RestrictionsChecks if any of the underlying restrictions is a CONTAINS / CONTAINS KEY restriction.- Returns:
trueif any of the underlying restrictions is CONTAINS,falseotherwise
-