org.axiondb.engine.rowiterators

Class CollatingRowIterator

public class CollatingRowIterator extends BaseRowIterator

Collates the results of two or more sorted RowIterators according to the given RowComparator. It is assumed that each iterator is already ordered (ascending) according to the given RowComparator.

Version: $Revision: 1.19 $ $Date: 2005/12/20 18:32:40 $

Author: Rodney Waldhoff Ahimanikya Satapathy

Constructor Summary
CollatingRowIterator(RowComparator comparator)
Method Summary
voidaddRowIterator(RowIterator iter)
Rowcurrent()
intcurrentIndex()
booleanhasCurrent()
booleanhasNext()
booleanhasPrevious()
Rowlast()
Rownext()
intnextIndex()
Rowprevious()
intpreviousIndex()
voidremove()
voidreset()
voidset(Row row)
intsize()
StringtoString()

Constructor Detail

CollatingRowIterator

public CollatingRowIterator(RowComparator comparator)

Method Detail

addRowIterator

public void addRowIterator(RowIterator iter)

current

public Row current()

currentIndex

public int currentIndex()

hasCurrent

public boolean hasCurrent()

hasNext

public boolean hasNext()

hasPrevious

public boolean hasPrevious()

last

public Row last()

next

public Row next()

nextIndex

public int nextIndex()

previous

public Row previous()

previousIndex

public int previousIndex()

remove

public void remove()

reset

public void reset()

set

public void set(Row row)

size

public int size()

toString

public String toString()