|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.iterators.system.HeapIterator
public abstract class HeapIterator
Constructs a PriorityQueue
of multiple SortedKeyValueIterators. Provides a simple way to interact with multiple SortedKeyValueIterators in sorted
order.
Constructor Summary | |
---|---|
protected |
HeapIterator()
|
protected |
HeapIterator(int maxSize)
|
Method Summary | |
---|---|
protected void |
addSource(SortedKeyValueIterator<Key,Value> source)
|
protected void |
clear()
|
protected void |
createHeap(int maxSize)
|
Key |
getTopKey()
Returns top key. |
Value |
getTopValue()
Returns top value. |
boolean |
hasTop()
Returns true if the iterator has more elements. |
void |
next()
Advances to the next K,V pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.accumulo.core.iterators.SortedKeyValueIterator |
---|
deepCopy, init, seek |
Constructor Detail |
---|
protected HeapIterator()
protected HeapIterator(int maxSize)
Method Detail |
---|
protected void createHeap(int maxSize)
public final Key getTopKey()
SortedKeyValueIterator
getTopKey
in interface SortedKeyValueIterator<Key,Value>
public final Value getTopValue()
SortedKeyValueIterator
getTopValue
in interface SortedKeyValueIterator<Key,Value>
public final boolean hasTop()
SortedKeyValueIterator
hasTop
in interface SortedKeyValueIterator<Key,Value>
public final void next() throws IOException
SortedKeyValueIterator
next
in interface SortedKeyValueIterator<Key,Value>
IOException
- if an I/O error occurs.protected final void clear()
protected final void addSource(SortedKeyValueIterator<Key,Value> source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |