Class TokenRestriction.SliceRestriction
java.lang.Object
org.apache.cassandra.cql3.restrictions.TokenRestriction
org.apache.cassandra.cql3.restrictions.TokenRestriction.SliceRestriction
- 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
ConstructorsConstructorDescriptionSliceRestriction(TableMetadata table, 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.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.booleanhasSlice()Checks if any of the underlying restrictions is a slice.booleanisInclusive(Bound b) toString()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, hasSupportingIndex, hasUnrestrictedPartitionKeyComponents, isEmpty, isOnToken, mergeWith, needFiltering, needsFiltering, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.restrictions.Restrictions
getColumnDefinitions
-
Constructor Details
-
SliceRestriction
public SliceRestriction(TableMetadata table, List<ColumnMetadata> columnDefs, Bound bound, boolean inclusive, Term term)
-
-
Method Details
-
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
-
hasSlice
public boolean hasSlice()Description copied from interface:RestrictionsChecks if any of the underlying restrictions is a slice.- Specified by:
hasSlicein interfaceRestrictions- Overrides:
hasSlicein classTokenRestriction- Returns:
trueif any of the underlying restrictions is a slice,falseotherwise
-
values
public List<ByteBuffer> values(QueryOptions options, ClientState state) throws InvalidRequestException - Throws:
InvalidRequestException
-
hasBound
-
bounds
- Throws:
InvalidRequestException
-
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
-
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
-
toString
-