|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectme.prettyprint.cassandra.service.ColumnSliceIterator<K,N,V>
public class ColumnSliceIterator<K,N,V>
Iterates over the column slice, refreshing 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 |
ColumnSliceIterator.ColumnSliceFinish<N>
When iterating over a ColumnSlice, it may be desirable to move the finish point for each query. |
| Constructor Summary | |
|---|---|
ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
ColumnSliceIterator.ColumnSliceFinish<N> finish,
boolean reversed)
Constructor |
|
ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
ColumnSliceIterator.ColumnSliceFinish<N> finish,
boolean reversed,
int count)
Constructor |
|
ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
N finish,
boolean reversed)
Constructor |
|
ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
N finish,
boolean reversed,
int count)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
HColumn<N,V> |
next()
|
void |
remove()
|
ColumnSliceIterator |
setFilter(SliceFilter<HColumn<N,V>> 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 ColumnSliceIterator(SliceQuery<K,N,V> 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 ColumnSliceIterator(SliceQuery<K,N,V> 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 ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
ColumnSliceIterator.ColumnSliceFinish<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 ColumnSliceIterator(SliceQuery<K,N,V> query,
N start,
ColumnSliceIterator.ColumnSliceFinish<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 ColumnSliceIterator setFilter(SliceFilter<HColumn<N,V>> filter)
filter - Filter to determine which columns will be returned
public boolean hasNext()
hasNext in interface Iterator<HColumn<N,V>>public HColumn<N,V> next()
next in interface Iterator<HColumn<N,V>>public void remove()
remove in interface Iterator<HColumn<N,V>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||