public static class Restriction.Slice extends java.lang.Object implements Restriction
Restriction.EQ, Restriction.IN, Restriction.Slice| Constructor and Description |
|---|
Restriction.Slice(boolean onToken) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bound(Bound b,
java.util.List<java.nio.ByteBuffer> variables) |
org.apache.cassandra.thrift.IndexOperator |
getIndexOperator(Bound b) |
Relation.Type |
getRelation(Bound eocBound,
Bound inclusiveBound) |
boolean |
hasBound(Bound b) |
boolean |
isEQ() |
boolean |
isIN() |
boolean |
isInclusive(Bound b) |
boolean |
isOnToken() |
boolean |
isSlice() |
void |
setBound(ColumnIdentifier name,
Relation.Type type,
Term t) |
java.lang.String |
toString() |
java.util.List<java.nio.ByteBuffer> |
values(java.util.List<java.nio.ByteBuffer> variables) |
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 RestrictionInvalidRequestExceptionpublic boolean isOnToken()
isOnToken in interface Restrictionpublic boolean hasBound(Bound b)
public java.nio.ByteBuffer bound(Bound b, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
InvalidRequestExceptionpublic boolean isInclusive(Bound b)
public Relation.Type getRelation(Bound eocBound, Bound inclusiveBound)
public org.apache.cassandra.thrift.IndexOperator getIndexOperator(Bound b)
public void setBound(ColumnIdentifier name, Relation.Type type, Term t) throws InvalidRequestException
InvalidRequestExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 The Apache Software Foundation