public class BlockIterator extends Object implements ReverseSeekingIterator<Slice,Slice>
| Constructor and Description |
|---|
BlockIterator(Slice data,
Slice restartPositions,
Comparator<Slice> comparator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrev() |
BlockEntry |
next() |
BlockEntry |
peek() |
BlockEntry |
peekPrev() |
BlockEntry |
prev() |
void |
remove() |
void |
seek(Slice targetKey)
Repositions the iterator so the key of the next BlockElement returned greater than or equal to
the specified targetKey.
|
void |
seekToEnd() |
void |
seekToFirst()
Repositions the iterator to the beginning of this block.
|
void |
seekToLast() |
public BlockIterator(Slice data, Slice restartPositions, Comparator<Slice> comparator)
public boolean hasNext()
public boolean hasPrev()
hasPrev in interface ReverseIterator<Map.Entry<Slice,Slice>>public BlockEntry peek()
public BlockEntry peekPrev()
peekPrev in interface ReversePeekingIterator<Map.Entry<Slice,Slice>>public BlockEntry next()
public BlockEntry prev()
prev in interface ReverseIterator<Map.Entry<Slice,Slice>>public void remove()
public void seekToFirst()
seekToFirst in interface SeekingIterator<Slice,Slice>public void seekToLast()
seekToLast in interface ReverseSeekingIterator<Slice,Slice>public void seekToEnd()
seekToEnd in interface ReverseSeekingIterator<Slice,Slice>public void seek(Slice targetKey)
seek in interface SeekingIterator<Slice,Slice>Copyright © 2011–2015. All rights reserved.