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 or tokens range at a time.

Author:
Ran Tavory, Javier A. Sotelo

Constructor Summary
HKeyRange(Serializer<K> keySerializer)
           
 
Method Summary
 void addToExpressions(org.apache.cassandra.thrift.IndexExpression elem)
           
 int getRowCount()
           
 HKeyRange<K> setKeys(K start, K end)
           
 HKeyRange<K> setRowCount(int rowCount)
           
 HKeyRange<K> setTokens(K startKey, String startToken, String endToken)
           
 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)

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.