public class SliceCounterIterator<K,N> extends Object implements Iterator<HCounterColumn<N>>
hasNext(), the column name object type must
override Object.equals().| Modifier and Type | Class and Description |
|---|---|
static interface |
SliceCounterIterator.SliceCounterFinish<N>
When iterating over a SliceCounter, it may be desirable to move the finish
point for each query.
|
| Constructor and Description |
|---|
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
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
HCounterColumn<N> |
next() |
void |
remove() |
SliceCounterIterator |
setFilter(SliceFilter<HCounterColumn<N>> filter)
Set a filter to determine which columns will be returned.
|
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 reversedpublic 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 batchpublic 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 reversedpublic 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 batchpublic SliceCounterIterator setFilter(SliceFilter<HCounterColumn<N>> filter)
filter - Filter to determine which columns will be returnedpublic 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>>Copyright © 2014. All Rights Reserved.