me.prettyprint.cassandra.model
Class RowsImpl<K,N,V>
java.lang.Object
me.prettyprint.cassandra.model.RowsImpl<K,N,V>
- Type Parameters:
N
- V
-
- All Implemented Interfaces:
- Iterable<Row<K,N,V>>, Rows<K,N,V>
- Direct Known Subclasses:
- OrderedRowsImpl
public class RowsImpl<K,N,V>
- extends Object
- implements Rows<K,N,V>
Returned by a MultigetSliceQuery (multiget_slice thrift call)
- Author:
- Ran Tavory
rows
protected final Map<K,Row<K,N,V>> rows
RowsImpl
public RowsImpl(Map<K,List<org.apache.cassandra.thrift.Column>> thriftRet,
Serializer<N> nameSerializer,
Serializer<V> valueSerializer)
RowsImpl
protected RowsImpl()
getByKey
public Row<K,N,V> getByKey(K key)
- Specified by:
getByKey
in interface Rows<K,N,V>
getCount
public int getCount()
- Specified by:
getCount
in interface Rows<K,N,V>
iterator
public Iterator<Row<K,N,V>> iterator()
- Specified by:
iterator
in interface Iterable<Row<K,N,V>>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.