org.netbeans.mdr.persistence.btreeimpl.btreeindex
Class BtreeKeySet.BtreeKeyIterator

java.lang.Object
  extended by org.netbeans.mdr.persistence.btreeimpl.btreeindex.BtreeKeySet.BtreeKeyIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
BtreeKeySet

public class BtreeKeySet.BtreeKeyIterator
extends java.lang.Object
implements java.util.Iterator

Iterator over a BtreeKeySet


Field Summary
protected  org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult current
           
protected  int modCount
           
protected  BtreePageSource pageSource
           
 
Method Summary
protected  void finalize()
           
 boolean hasNext()
          Tests whether there are any more elements to return
 java.lang.Object next()
          Gets the next distinct key in the btree.
 void remove()
          This is not supported.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

current

protected org.netbeans.mdr.persistence.btreeimpl.btreeindex.SearchResult current

pageSource

protected BtreePageSource pageSource

modCount

protected int modCount
Method Detail

hasNext

public boolean hasNext()
Tests whether there are any more elements to return

Specified by:
hasNext in interface java.util.Iterator
Returns:
true if a call to next() would succeed

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Gets the next distinct key in the btree. If this is on a different page from the previous value, the old page will be unpinned.

Specified by:
next in interface java.util.Iterator
Returns:
The next distinct key in the btree
Throws:
java.util.NoSuchElementException - If there was any error or if there are no more records

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

remove

public void remove()
            throws java.lang.UnsupportedOperationException
This is not supported.

Specified by:
remove in interface java.util.Iterator
Throws:
java.lang.UnsupportedOperationException - Always thrown.


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.