public static class TokenRestriction.SliceRestriction extends TokenRestriction
TokenRestriction.EQRestriction, TokenRestriction.SliceRestriction
columnDefs, metadata
Constructor and Description |
---|
SliceRestriction(TableMetadata table,
java.util.List<ColumnMetadata> columnDefs,
Bound bound,
boolean inclusive,
Term term) |
Modifier and Type | Method and Description |
---|---|
void |
addFunctionsTo(java.util.List<Function> functions) |
java.util.List<java.nio.ByteBuffer> |
bounds(Bound b,
QueryOptions options) |
protected org.apache.cassandra.cql3.restrictions.PartitionKeyRestrictions |
doMergeWith(TokenRestriction otherRestriction)
Merges this restriction with the specified
TokenRestriction . |
boolean |
hasBound(Bound b) |
boolean |
hasContains() |
boolean |
hasSlice()
Checks if any of the underlying restrictions is a slice.
|
boolean |
isInclusive(Bound b) |
java.lang.String |
toString() |
java.util.List<java.nio.ByteBuffer> |
values(QueryOptions options) |
addRowFilterTo, getColumnDefs, getColumnNamesAsString, getFirstColumn, getLastColumn, getRestrictions, hasIN, hasOnlyEqualityRestrictions, hasSupportingIndex, hasUnrestrictedPartitionKeyComponents, isEmpty, isOnToken, mergeWith, needFiltering, size
public SliceRestriction(TableMetadata table, java.util.List<ColumnMetadata> columnDefs, Bound bound, boolean inclusive, Term term)
public boolean hasContains()
public boolean hasSlice()
Restrictions
hasSlice
in class TokenRestriction
true
if any of the underlying restrictions is a slice, false
otherwisepublic java.util.List<java.nio.ByteBuffer> values(QueryOptions options) throws InvalidRequestException
InvalidRequestException
public boolean hasBound(Bound b)
public java.util.List<java.nio.ByteBuffer> bounds(Bound b, QueryOptions options) throws InvalidRequestException
InvalidRequestException
public void addFunctionsTo(java.util.List<Function> functions)
public boolean isInclusive(Bound b)
protected org.apache.cassandra.cql3.restrictions.PartitionKeyRestrictions doMergeWith(TokenRestriction otherRestriction) throws InvalidRequestException
TokenRestriction
TokenRestriction
.doMergeWith
in class TokenRestriction
otherRestriction
- the TokenRestriction
to merge with.InvalidRequestException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009- The Apache Software Foundation