public static class SingleColumnRestriction.Slice extends SingleColumnRestriction implements Restriction.Slice
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 |
|---|
SingleColumnRestriction.Slice(boolean onToken) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bound(Bound b,
java.util.List<java.nio.ByteBuffer> variables) |
IndexOperator |
getIndexOperator(Bound b) |
Relation.Type |
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 |
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(Relation.Type type,
Term t) |
java.lang.String |
toString() |
java.util.List<java.nio.ByteBuffer> |
values(java.util.List<java.nio.ByteBuffer> variables) |
isMultiColumnclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisMultiColumnprotected final Term[] bounds
protected final boolean[] boundInclusive
protected final boolean onToken
public SingleColumnRestriction.Slice(boolean onToken)
public boolean isSlice()
isSlice in interface Restrictionpublic boolean isEQ()
isEQ in interface Restrictionpublic boolean isIN()
isIN in interface Restrictionpublic java.util.List<java.nio.ByteBuffer> values(java.util.List<java.nio.ByteBuffer> variables)
throws InvalidRequestException
values in interface Restrictionvalues in interface Restriction.SliceInvalidRequestExceptionpublic boolean isOnToken()
isOnToken in interface Restrictionpublic boolean hasBound(Bound b)
hasBound in interface Restriction.Slicepublic java.nio.ByteBuffer bound(Bound b, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
bound in interface Restriction.SliceInvalidRequestExceptionpublic boolean isInclusive(Bound b)
isInclusive in interface Restriction.Slicepublic Relation.Type getRelation(Bound eocBound, Bound inclusiveBound)
getRelation in interface Restriction.Slicepublic IndexOperator getIndexOperator(Bound b)
getIndexOperator in interface Restriction.Slicepublic void setBound(Relation.Type type, Term t) throws InvalidRequestException
setBound in interface Restriction.SliceInvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015 The Apache Software Foundation