public static class SingleColumnRestriction.Slice extends SingleColumnRestriction implements Restriction.Slice
SingleColumnRestriction.Contains, SingleColumnRestriction.EQ, SingleColumnRestriction.InWithMarker, SingleColumnRestriction.InWithValues, SingleColumnRestriction.SliceRestriction.EQ, Restriction.IN, Restriction.Slice| Modifier and Type | Field and Description |
|---|---|
protected boolean[] |
boundInclusive |
protected Term[] |
bounds |
protected boolean |
onToken |
| Constructor and Description |
|---|
Slice(boolean onToken) |
| Modifier and Type | Method and Description |
|---|---|
Term |
bound(Bound b) |
java.nio.ByteBuffer |
bound(Bound b,
QueryOptions options) |
boolean |
canEvaluateWithSlices()
Returns true if, when applied to a clustering column, this restriction can be handled through one or more slices
alone without filtering.
|
Operator |
getIndexOperator(Bound b) |
Operator |
getRelation(Bound eocBound,
Bound inclusiveBound) |
boolean |
hasBound(Bound b)
Returns true if the start or end bound (depending on the argument) is set, false otherwise
|
boolean |
isContains() |
boolean |
isEQ() |
boolean |
isIN() |
boolean |
isInclusive(Bound b)
Returns true if the start or end bound (depending on the argument) is inclusive, false otherwise
|
boolean |
isOnToken() |
boolean |
isSlice() |
void |
setBound(Operator operator,
Term t) |
void |
setBound(Restriction.Slice slice) |
java.lang.String |
toString() |
java.util.List<java.nio.ByteBuffer> |
values(QueryOptions options) |
isMultiColumnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisMultiColumnprotected final Term[] bounds
protected final boolean[] boundInclusive
protected final boolean onToken
public boolean isSlice()
isSlice in interface Restrictionpublic boolean isEQ()
isEQ in interface Restrictionpublic boolean isIN()
isIN in interface Restrictionpublic boolean isContains()
isContains in interface Restrictionpublic java.util.List<java.nio.ByteBuffer> values(QueryOptions options) throws InvalidRequestException
values in interface Restrictionvalues in interface Restriction.SliceInvalidRequestExceptionpublic boolean isOnToken()
isOnToken in interface Restrictionpublic boolean canEvaluateWithSlices()
RestrictioncanEvaluateWithSlices in interface Restrictionpublic boolean hasBound(Bound b)
hasBound in interface Restriction.Slicepublic Term bound(Bound b)
bound in interface Restriction.Slicepublic java.nio.ByteBuffer bound(Bound b, QueryOptions options) throws InvalidRequestException
bound in interface Restriction.SliceInvalidRequestExceptionpublic boolean isInclusive(Bound b)
isInclusive in interface Restriction.Slicepublic Operator getRelation(Bound eocBound, Bound inclusiveBound)
getRelation in interface Restriction.Slicepublic Operator getIndexOperator(Bound b)
getIndexOperator in interface Restriction.Slicepublic final void setBound(Operator operator, Term t) throws InvalidRequestException
setBound in interface Restriction.SliceInvalidRequestExceptionpublic void setBound(Restriction.Slice slice) throws InvalidRequestException
setBound in interface Restriction.SliceInvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation