me.prettyprint.cassandra.service.template
Class IndexedSlicesPredicate<K,N,V>

java.lang.Object
  extended by me.prettyprint.cassandra.service.template.IndexedSlicesPredicate<K,N,V>
Type Parameters:
K - Key class
N - Column name class
V - Column value class

public class IndexedSlicesPredicate<K,N,V>
extends Object

Predicate wrapping the Thrift IndexClause for the get_indexed_slices call.

Author:
Jim Ancona (jim@anconafamily.com)

Constructor Summary
IndexedSlicesPredicate(Serializer<K> keySerializer, Serializer<N> nameSerializer, Serializer<V> valueSerializer)
           
 
Method Summary
 IndexedSlicesPredicate<K,N,V> addExpression(N columnName, org.apache.cassandra.thrift.IndexOperator op, V value)
           
 IndexedSlicesPredicate<K,N,V> count(int count)
           
 IndexedSlicesPredicate<K,N,V> startKey(K key)
           
 org.apache.cassandra.thrift.IndexClause toThrift()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedSlicesPredicate

public IndexedSlicesPredicate(Serializer<K> keySerializer,
                              Serializer<N> nameSerializer,
                              Serializer<V> valueSerializer)
Method Detail

count

public IndexedSlicesPredicate<K,N,V> count(int count)

startKey

public IndexedSlicesPredicate<K,N,V> startKey(K key)

addExpression

public IndexedSlicesPredicate<K,N,V> addExpression(N columnName,
                                                   org.apache.cassandra.thrift.IndexOperator op,
                                                   V value)

toThrift

public org.apache.cassandra.thrift.IndexClause toThrift()


Copyright © 2012. All Rights Reserved.