org.neodatis.btree
Class BTreeIteratorMultipleValuesPerKey

java.lang.Object
  extended by org.neodatis.btree.AbstractBTreeIterator
      extended by org.neodatis.btree.BTreeIteratorMultipleValuesPerKey
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
LazyODBBTreeIteratorMultiple

public class BTreeIteratorMultipleValuesPerKey
extends AbstractBTreeIterator

An iterator to iterate over NeoDatis BTree that accept more than one value per key. This is used for non unique index and collection that return ordered by results

Author:
olivier

Field Summary
 
Fields inherited from class org.neodatis.btree.AbstractBTreeIterator
currentNode, nbReturnedElements
 
Constructor Summary
BTreeIteratorMultipleValuesPerKey(IBTree tree, OrderByConstants orderByType)
           
 
Method Summary
 java.lang.Object getValueAt(IBTreeNode node, int currentIndex)
           
 java.lang.Object next()
           
 
Methods inherited from class org.neodatis.btree.AbstractBTreeIterator
hasNext, nextAsc, nextDesc, remove, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTreeIteratorMultipleValuesPerKey

public BTreeIteratorMultipleValuesPerKey(IBTree tree,
                                         OrderByConstants orderByType)
Parameters:
tree -
orderByType -
Method Detail

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Overrides:
next in class AbstractBTreeIterator

getValueAt

public java.lang.Object getValueAt(IBTreeNode node,
                                   int currentIndex)
Specified by:
getValueAt in class AbstractBTreeIterator