com.netflix.astyanax.shallows
Class EmptyRowsImpl<K,C>

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

public class EmptyRowsImpl<K,C>
extends java.lang.Object
implements Rows<K,C>


Constructor Summary
EmptyRowsImpl()
           
 
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
 java.util.Iterator<Row<K,C>> iterator()
           
 int size()
          Get the number of rows in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyRowsImpl

public EmptyRowsImpl()
Method Detail

iterator

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

getRow

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

Specified by:
getRow in interface Rows<K,C>
Returns:

size

public int size()
Description copied from interface: Rows
Get the number of rows in the list

Specified by:
size in interface Rows<K,C>
Returns:
integer representing the number of rows in the list

isEmpty

public boolean isEmpty()
Description copied from interface: Rows
Determine if the row list has data

Specified by:
isEmpty in interface Rows<K,C>
Returns:

getRowByIndex

public Row<K,C> getRowByIndex(int i)
Description copied from interface: Rows
Return a row by it's index in the response.

Specified by:
getRowByIndex in interface Rows<K,C>

getKeys

public java.util.Collection<K> getKeys()
Description copied from interface: Rows
Return all row keys in the set

Specified by:
getKeys in interface Rows<K,C>
Returns: