me.prettyprint.cassandra.model
Class OrderedCounterRowsImpl<K,N>

java.lang.Object
  extended by me.prettyprint.cassandra.model.CounterRowsImpl<K,N>
      extended by me.prettyprint.cassandra.model.OrderedCounterRowsImpl<K,N>
Type Parameters:
N -
All Implemented Interfaces:
Iterable<CounterRow<K,N>>, CounterRows<K,N>, OrderedCounterRows<K,N>

public final class OrderedCounterRowsImpl<K,N>
extends CounterRowsImpl<K,N>
implements OrderedCounterRows<K,N>

Return type from get_range_slices for simple columns

Author:
Ran Tavory, zznate

Field Summary
 
Fields inherited from class me.prettyprint.cassandra.model.CounterRowsImpl
rows
 
Constructor Summary
OrderedCounterRowsImpl(LinkedHashMap<K,List<org.apache.cassandra.thrift.CounterColumn>> thriftRet, Serializer<N> nameSerializer)
           
 
Method Summary
 List<CounterRow<K,N>> getList()
          Preserves rows order
 CounterRow<K,N> peekLast()
          Returns the last element in this row result.
 
Methods inherited from class me.prettyprint.cassandra.model.CounterRowsImpl
getByKey, getCount, iterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface me.prettyprint.hector.api.beans.CounterRows
getByKey, getCount
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

OrderedCounterRowsImpl

public OrderedCounterRowsImpl(LinkedHashMap<K,List<org.apache.cassandra.thrift.CounterColumn>> thriftRet,
                              Serializer<N> nameSerializer)
Method Detail

getList

public List<CounterRow<K,N>> getList()
Preserves rows order

Specified by:
getList in interface OrderedCounterRows<K,N>
Returns:
an unmodifiable list of Rows

peekLast

public CounterRow<K,N> peekLast()
Returns the last element in this row result. Helpful for passing along for paging situations.

Specified by:
peekLast in interface OrderedCounterRows<K,N>
Returns:


Copyright © 2011. All Rights Reserved.