public class

ThriftAllRowsImpl

extends Object
implements Rows<K, C>
java.lang.Object
   ↳ com.netflix.astyanax.thrift.ThriftAllRowsImpl<K, C>

Summary

Public Constructors
ThriftAllRowsImpl(AbstractThriftAllRowsQueryImpl<K, C> query, ColumnFamily<K, C> columnFamily)
Public Methods
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
Iterator<Row<K, C>> iterator()
Each call to .iterator() returns a new context starting at the beginning of the column family.
int size()
Get the number of rows in the list
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.model.Rows
From interface java.lang.Iterable

Public Constructors

public ThriftAllRowsImpl (AbstractThriftAllRowsQueryImpl<K, C> query, ColumnFamily<K, C> columnFamily)

Public Methods

public 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.

public Row<K, C> getRowByIndex (int i)

Return a row by it's index in the response.

public boolean isEmpty ()

Determine if the row list has data

public Iterator<Row<K, C>> iterator ()

Each call to .iterator() returns a new context starting at the beginning of the column family.

public int size ()

Get the number of rows in the list

Returns
  • integer representing the number of rows in the list