- Type Parameters:
K -
C -
- All Implemented Interfaces:
- com.netflix.astyanax.model.Rows<K,C>, java.lang.Iterable<com.netflix.astyanax.model.Row<K,C>>
public class CqlRowListIterator<K,C>
extends java.lang.Object
implements com.netflix.astyanax.model.Rows<K,C>
Impl for Rows that parses the ResultSet from java driver and translates back to Astyanax Rows.
Note that if your schema has a clustering key, then each individual row from the result set is a unique column,
and all result set rows with the same partition key map to a unique Astyanax row.
Note that this class leverages the cursor support from java driver and expects the user to use the iterator based
approach when reading through results which contain multiple rows.
Some users may want to read all the data instead of using an iterator approach. To handle this situation,
the class maintains some state that indicates how the object is first accessed in order to avoid iterating twice
over the same result set.