com.netflix.astyanax.model
Interface Rows<K,C>

Type Parameters:
K -
C -
All Superinterfaces:
java.lang.Iterable<Row<K,C>>
All Known Implementing Classes:
EmptyRowsImpl

public interface Rows<K,C>
extends java.lang.Iterable<Row<K,C>>

Interface to a collection or Rows with key type K and column type C. The rows can be either super or standard, but not both.


Method Summary
 java.util.Collection<K> getKeys()
          Return all row keys in the set
 Row<K,C> getRow(K key)
          Return the row for a specific key.
 Row<K,C> getRowByIndex(int i)
          Return a row by it's index in the response.
 boolean isEmpty()
          Determine if the row list has data
 int size()
          Get the number of rows in the list
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getKeys

java.util.Collection<K> getKeys()
Return all row keys in the set

Returns:

getRow

Row<K,C> getRow(K key)
Return the row for a specific key. Will return an exception if the result set is a list and not a lookup.

Parameters:
key -
Returns:

getRowByIndex

Row<K,C> getRowByIndex(int i)
Return a row by it's index in the response.

Parameters:
i -

size

int size()
Get the number of rows in the list

Returns:
integer representing the number of rows in the list

isEmpty

boolean isEmpty()
Determine if the row list has data

Returns: