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

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

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


Constructor Summary
ThriftCqlRowsImpl(java.util.List<org.apache.cassandra.thrift.CqlRow> 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

ThriftCqlRowsImpl

public ThriftCqlRowsImpl(java.util.List<org.apache.cassandra.thrift.CqlRow> 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>