org.helidb.util.bplus
Class BPlusTree.BPlusTreeValueIterator
java.lang.Object
org.helidb.util.bplus.BPlusTree.AbstractBPlusTreeRecordIterator<V>
org.helidb.util.bplus.BPlusTree.BPlusTreeValueIterator
- All Implemented Interfaces:
- Iterator<V>
- Enclosing class:
- BPlusTree<K,V>
protected class BPlusTree.BPlusTreeValueIterator
- extends BPlusTree.AbstractBPlusTreeRecordIterator<V>
An iterator over the tree's values.
- Since:
- 1.0
- Author:
- Karl Gustafsson
Method Summary |
protected void |
checkRevision()
Subclasses implement this to throw a
ConcurrentModificationException if the contents of the tree
has changed in a way that invalidates the iterator. |
protected V |
getNext(KeyAndValue<K,V> kv)
Subclasses implement this to return the object that the iterator
returns from the supplied record. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BPlusTree.BPlusTreeValueIterator
protected BPlusTree.BPlusTreeValueIterator()
checkRevision
protected void checkRevision()
- Description copied from class:
BPlusTree.AbstractBPlusTreeRecordIterator
- Subclasses implement this to throw a
ConcurrentModificationException
if the contents of the tree
has changed in a way that invalidates the iterator.
- Specified by:
checkRevision
in class BPlusTree.AbstractBPlusTreeRecordIterator<V>
getNext
protected V getNext(KeyAndValue<K,V> kv)
- Description copied from class:
BPlusTree.AbstractBPlusTreeRecordIterator
- Subclasses implement this to return the object that the iterator
returns from the supplied record.
- Specified by:
getNext
in class BPlusTree.AbstractBPlusTreeRecordIterator<V>
- Parameters:
kv
- The record
- Returns:
- The object that the iterator returns.