me.prettyprint.cassandra.model
Class HKeyRange<K>

java.lang.Object
  extended by 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

Constructor Summary
HKeyRange(Serializer<K> keySerializer)
           
 
Method Summary
 HKeyRange<K> setKeys(K start, K end)
           
 HKeyRange<K> setRowCount(int rowCount)
           
 String toString()
           
 org.apache.cassandra.thrift.KeyRange toThrift()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HKeyRange

public HKeyRange(Serializer<K> keySerializer)
Method Detail

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.