me.prettyprint.cassandra.model
Class OrderedCounterRowsImpl<K,N>
java.lang.Object
me.prettyprint.cassandra.model.CounterRowsImpl<K,N>
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
OrderedCounterRowsImpl
public OrderedCounterRowsImpl(LinkedHashMap<K,List<org.apache.cassandra.thrift.CounterColumn>> thriftRet,
Serializer<N> nameSerializer)
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.