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, no tokens range since if you want to use tokens and you're not hadoop
then you're (probably) doing something wrong (JE)
- Author:
- Ran Tavory
HKeyRange
public HKeyRange(Serializer<K> keySerializer)
setKeys
public HKeyRange<K> setKeys(K start,
K end)
setRowCount
public HKeyRange<K> setRowCount(int rowCount)
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 © 2011. All Rights Reserved.