me.prettyprint.cassandra.model
Class RowsImpl<K,N,V>

java.lang.Object
  extended by 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

Field Summary
protected  Map<K,Row<K,N,V>> rows
           
 
Constructor Summary
protected RowsImpl()
           
  RowsImpl(Map<K,List<org.apache.cassandra.thrift.Column>> thriftRet, Serializer<N> nameSerializer, Serializer<V> valueSerializer)
           
 
Method Summary
 Row<K,N,V> getByKey(K key)
           
 int getCount()
           
 Iterator<Row<K,N,V>> iterator()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rows

protected final Map<K,Row<K,N,V>> rows
Constructor Detail

RowsImpl

public RowsImpl(Map<K,List<org.apache.cassandra.thrift.Column>> thriftRet,
                Serializer<N> nameSerializer,
                Serializer<V> valueSerializer)

RowsImpl

protected RowsImpl()
Method Detail

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.