com.netflix.astyanax.thrift
Class ThriftAllRowsImpl<K,C>

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

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


Constructor Summary
ThriftAllRowsImpl(com.netflix.astyanax.partitioner.Partitioner partitioner, ThriftAllRowsQueryImpl<K,C> query, com.netflix.astyanax.model.ColumnFamily<K,C> columnFamily)
           
 
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()
          Each call to .iterator() returns a new context starting at the beginning of the column family.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftAllRowsImpl

public ThriftAllRowsImpl(com.netflix.astyanax.partitioner.Partitioner partitioner,
                         ThriftAllRowsQueryImpl<K,C> query,
                         com.netflix.astyanax.model.ColumnFamily<K,C> columnFamily)
Method Detail

iterator

public java.util.Iterator<com.netflix.astyanax.model.Row<K,C>> iterator()
Each call to .iterator() returns a new context starting at the beginning of the column family.

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>