com.netflix.astyanax.thrift.model
Class ThriftRowsListImpl<K,C>

java.lang.Object
  extended by com.netflix.astyanax.thrift.model.ThriftRowsListImpl<K,C>
All Implemented Interfaces:
com.netflix.astyanax.model.Rows<K,C>, java.lang.Iterable<com.netflix.astyanax.model.Row<K,C>>

public class ThriftRowsListImpl<K,C>
extends java.lang.Object
implements com.netflix.astyanax.model.Rows<K,C>


Constructor Summary
ThriftRowsListImpl(java.util.Map<java.nio.ByteBuffer,java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> rows, com.netflix.astyanax.Serializer<K> keySer, com.netflix.astyanax.Serializer<C> colSer)
           
 
Method Summary
 java.util.Collection<K> getKeys()
           
 com.netflix.astyanax.model.Row<K,C> getRow(K key)
           
 com.netflix.astyanax.model.Row<K,C> getRowByIndex(int i)
           
 boolean isEmpty()
           
 java.util.Iterator<com.netflix.astyanax.model.Row<K,C>> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftRowsListImpl

public ThriftRowsListImpl(java.util.Map<java.nio.ByteBuffer,java.util.List<org.apache.cassandra.thrift.ColumnOrSuperColumn>> rows,
                          com.netflix.astyanax.Serializer<K> keySer,
                          com.netflix.astyanax.Serializer<C> colSer)
Method Detail

iterator

public java.util.Iterator<com.netflix.astyanax.model.Row<K,C>> iterator()
Specified by:
iterator in interface java.lang.Iterable<com.netflix.astyanax.model.Row<K,C>>

getRow

public com.netflix.astyanax.model.Row<K,C> getRow(K key)
Specified by:
getRow in interface com.netflix.astyanax.model.Rows<K,C>

size

public int size()
Specified by:
size in interface com.netflix.astyanax.model.Rows<K,C>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface com.netflix.astyanax.model.Rows<K,C>

getRowByIndex

public com.netflix.astyanax.model.Row<K,C> getRowByIndex(int i)
Specified by:
getRowByIndex in interface com.netflix.astyanax.model.Rows<K,C>

getKeys

public java.util.Collection<K> getKeys()
Specified by:
getKeys in interface com.netflix.astyanax.model.Rows<K,C>