public static class TokenRestriction.SliceRestriction extends TokenRestriction
TokenRestriction.EQRestriction, TokenRestriction.SliceRestrictioncolumnDefs, metadata| Constructor and Description |
|---|
SliceRestriction(CFMetaData cfm,
java.util.List<ColumnDefinition> 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, sizepublic SliceRestriction(CFMetaData cfm, java.util.List<ColumnDefinition> columnDefs, Bound bound, boolean inclusive, Term term)
public boolean hasContains()
public boolean hasSlice()
RestrictionshasSlice in class TokenRestrictiontrue if any of the underlying restrictions is a slice, false otherwisepublic java.util.List<java.nio.ByteBuffer> values(QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic boolean hasBound(Bound b)
public java.util.List<java.nio.ByteBuffer> bounds(Bound b, QueryOptions options) throws InvalidRequestException
InvalidRequestExceptionpublic void addFunctionsTo(java.util.List<Function> functions)
public boolean isInclusive(Bound b)
protected org.apache.cassandra.cql3.restrictions.PartitionKeyRestrictions doMergeWith(TokenRestriction otherRestriction) throws InvalidRequestException
TokenRestrictionTokenRestriction.doMergeWith in class TokenRestrictionotherRestriction - the TokenRestriction to merge with.InvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 The Apache Software Foundation