org.helidb.util.bplus
Class BPlusTree.BPlusTreeNodeIterator

java.lang.Object
  extended by org.helidb.util.bplus.BPlusTree.BPlusTreeNodeIterator
All Implemented Interfaces:
Iterator<BPlusTreeLeafNode<K,V>>
Enclosing class:
BPlusTree<K,V>

protected class BPlusTree.BPlusTreeNodeIterator
extends Object
implements Iterator<BPlusTreeLeafNode<K,V>>

This is an Iterator over the B+ Tree's leaf nodes. It may be used by subclasses to process nodes.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
BPlusTree.BPlusTreeNodeIterator()
          Create a new iterator.
 
Method Summary
 boolean hasNext()
           
 BPlusTreeLeafNode<K,V> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPlusTree.BPlusTreeNodeIterator

public BPlusTree.BPlusTreeNodeIterator()
                                throws UnsupportedOperationException
Create a new iterator.

Throws:
UnsupportedOperationException - If the B+ Tree does not support iteration.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<BPlusTreeLeafNode<K,V>>

next

public BPlusTreeLeafNode<K,V> next()
Specified by:
next in interface Iterator<BPlusTreeLeafNode<K,V>>

remove

public void remove()
            throws UnsupportedOperationException
Specified by:
remove in interface Iterator<BPlusTreeLeafNode<K,V>>
Throws:
UnsupportedOperationException - Always.