public static class SingleColumnRestriction.Slice extends SingleColumnRestriction implements Restriction.Slice
SingleColumnRestriction.EQ, SingleColumnRestriction.InWithMarker, SingleColumnRestriction.InWithValues, SingleColumnRestriction.Slice
Restriction.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) |
org.apache.cassandra.thrift.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) |
isMultiColumn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isMultiColumn
protected final Term[] bounds
protected final boolean[] boundInclusive
protected final boolean onToken
public SingleColumnRestriction.Slice(boolean onToken)
public boolean isSlice()
isSlice
in interface Restriction
public boolean isEQ()
isEQ
in interface Restriction
public boolean isIN()
isIN
in interface Restriction
public java.util.List<java.nio.ByteBuffer> values(java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
values
in interface Restriction
values
in interface Restriction.Slice
InvalidRequestException
public boolean isOnToken()
isOnToken
in interface Restriction
public boolean hasBound(Bound b)
hasBound
in interface Restriction.Slice
public java.nio.ByteBuffer bound(Bound b, java.util.List<java.nio.ByteBuffer> variables) throws InvalidRequestException
bound
in interface Restriction.Slice
InvalidRequestException
public boolean isInclusive(Bound b)
isInclusive
in interface Restriction.Slice
public Relation.Type getRelation(Bound eocBound, Bound inclusiveBound)
getRelation
in interface Restriction.Slice
public org.apache.cassandra.thrift.IndexOperator getIndexOperator(Bound b)
getIndexOperator
in interface Restriction.Slice
public void setBound(Relation.Type type, Term t) throws InvalidRequestException
setBound
in interface Restriction.Slice
InvalidRequestException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 The Apache Software Foundation