me.prettyprint.cassandra.model
Class HKeyRange<K>
java.lang.Object
me.prettyprint.cassandra.model.HKeyRange<K>
public final class HKeyRange<K>
- extends Object
A helper class for range queries.
We allow only keys range or tokens range at a time.
- Author:
- Ran Tavory, Javier A. Sotelo
HKeyRange
public HKeyRange(Serializer<K> keySerializer)
setKeys
public HKeyRange<K> setKeys(K start,
K end)
setTokens
public HKeyRange<K> setTokens(K startKey,
String startToken,
String endToken)
setRowCount
public HKeyRange<K> setRowCount(int rowCount)
getRowCount
public int getRowCount()
addToExpressions
public void addToExpressions(org.apache.cassandra.thrift.IndexExpression elem)
toThrift
public org.apache.cassandra.thrift.KeyRange toThrift()
- Returns:
- The thrift representation of this object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.