me.prettyprint.cassandra.service
Class RangeSlicesIterator<K,N,V>

java.lang.Object
  extended by me.prettyprint.cassandra.service.RangeSlicesIterator<K,N,V>
All Implemented Interfaces:
Iterator<Row<K,N,V>>

public class RangeSlicesIterator<K,N,V>
extends Object
implements Iterator<Row<K,N,V>>

Iterates over the range slices, automatically refreshing the query until all matching rows are returned.

Author:
thrykol

Constructor Summary
RangeSlicesIterator(RangeSlicesQuery<K,N,V> query, K startKey, K endKey)
           
 
Method Summary
 boolean hasNext()
           
 Row<K,N,V> next()
           
 void remove()
           
 RangeSlicesIterator<K,N,V> setFilter(SliceFilter<Row<K,N,V>> filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeSlicesIterator

public RangeSlicesIterator(RangeSlicesQuery<K,N,V> query,
                           K startKey,
                           K endKey)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Row<K,N,V>>

next

public Row<K,N,V> next()
Specified by:
next in interface Iterator<Row<K,N,V>>

remove

public void remove()
Specified by:
remove in interface Iterator<Row<K,N,V>>

setFilter

public RangeSlicesIterator<K,N,V> setFilter(SliceFilter<Row<K,N,V>> filter)


Copyright © 2013. All Rights Reserved.