org.neodatis.btree
Class AbstractBTreeIterator
java.lang.Object
org.neodatis.btree.AbstractBTreeIterator
- All Implemented Interfaces:
- java.util.Iterator
- Direct Known Subclasses:
- BTreeIteratorMultipleValuesPerKey, BTreeIteratorSingleValuePerKey
public abstract class AbstractBTreeIterator
- extends java.lang.Object
- implements java.util.Iterator
- Author:
- olivier
Field Summary |
protected IBTreeNode |
currentNode
The current node where the iterator is |
protected int |
nbReturnedElements
The number of returned elements ; it may be different from the number of
keys in the case f multileValues btree where a key can contain more than
one value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentNode
protected IBTreeNode currentNode
- The current node where the iterator is
nbReturnedElements
protected int nbReturnedElements
- The number of returned elements ; it may be different from the number of
keys in the case f multileValues btree where a key can contain more than
one value
AbstractBTreeIterator
public AbstractBTreeIterator(IBTree tree,
OrderByConstants orderByType)
getValueAt
public abstract java.lang.Object getValueAt(IBTreeNode node,
int currentIndex)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
nextAsc
protected java.lang.Object nextAsc()
nextDesc
protected java.lang.Object nextDesc()
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
reset
public void reset()