|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.SliceCounterIterator<K,N>
public class SliceCounterIterator<K,N>
Iterates over the SliceCounterQuery, refreshing the query until all qualifing
columns are retrieved. If column deletion can occur synchronously with
calls to hasNext(), the column name object type must
override Object.equals().
| Nested Class Summary | |
|---|---|
static interface |
SliceCounterIterator.SliceCounterFinish<N>
When iterating over a SliceCounter, it may be desirable to move the finish point for each query. |
| Constructor Summary | |
|---|---|
SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
N finish,
boolean reversed)
Constructor |
|
SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
N finish,
boolean reversed,
int count)
Constructor |
|
SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
SliceCounterIterator.SliceCounterFinish<N> finish,
boolean reversed)
Constructor |
|
SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
SliceCounterIterator.SliceCounterFinish<N> finish,
boolean reversed,
int count)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
HCounterColumn<N> |
next()
|
void |
remove()
|
SliceCounterIterator |
setFilter(SliceFilter<HCounterColumn<N>> filter)
Set a filter to determine which columns will be returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
N finish,
boolean reversed)
query - Base SliceQuery to executestart - Starting point of the rangefinish - Finish point of the range.reversed - Whether or not the columns should be reversed
public SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
N finish,
boolean reversed,
int count)
query - Base SliceQuery to executestart - Starting point of the rangefinish - Finish point of the range.reversed - Whether or not the columns should be reversedcount - the amount of columns to retrieve per batch
public SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
SliceCounterIterator.SliceCounterFinish<N> finish,
boolean reversed)
query - Base SliceQuery to executestart - Starting point of the rangefinish - Finish point of the range. Allows for a dynamically
determined pointreversed - Whether or not the columns should be reversed
public SliceCounterIterator(SliceCounterQuery<K,N> query,
N start,
SliceCounterIterator.SliceCounterFinish<N> finish,
boolean reversed,
int count)
query - Base SliceQuery to executestart - Starting point of the rangefinish - Finish point of the range. Allows for a dynamically
determined pointreversed - Whether or not the columns should be reversedcount - the amount of columns to retrieve per batch| Method Detail |
|---|
public SliceCounterIterator setFilter(SliceFilter<HCounterColumn<N>> filter)
filter - Filter to determine which columns will be returned
public boolean hasNext()
hasNext in interface Iterator<HCounterColumn<N>>public HCounterColumn<N> next()
next in interface Iterator<HCounterColumn<N>>public void remove()
remove in interface Iterator<HCounterColumn<N>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||