org.axiondb.engine.rowiterators
Class IndexJoinedRowIterator

java.lang.Object
  extended byorg.axiondb.engine.rowiterators.BaseRowIterator
      extended byorg.axiondb.engine.rowiterators.BaseJoinedRowIterator
          extended byorg.axiondb.engine.rowiterators.IndexJoinedRowIterator
All Implemented Interfaces:
JoinedRowIterator, RowIterator

public class IndexJoinedRowIterator
extends BaseJoinedRowIterator

A JoinedRowIterator in which one of the underlying iterators is a ChangingIndexedRowIterator.

TODO: Join condition other than equal operator should be applied in this iterator level

Version:
$Revision: 1.16 $ $Date: 2004/08/21 10:30:43 $

Field Summary
static int INDEX_ON_LEFT_TABLE
           
static int INDEX_ON_RIGHT_TABLE
           
 
Constructor Summary
IndexJoinedRowIterator(int keypos, int colcount)
           
IndexJoinedRowIterator(int keypos, int colcount, int iMode)
           
 
Method Summary
 void addRowIterator(RowIterator iterator)
           
protected  String getShortName()
           
 void reset()
          Re-initialize this RowIterator to its initial state (positioned just before the first Rowin the list).
 void set(int rowIndex, Row row)
           
protected  boolean setNextRow()
           
protected  boolean setPreviousRow()
           
 
Methods inherited from class org.axiondb.engine.rowiterators.BaseJoinedRowIterator
acceptable, addIterator, allIteratorsAreEmpty, anyIteratorIsEmpty, clearNextRow, clearPreviousRow, current, currentIndex, first, getIterator, getIteratorCount, hasCurrent, hasNext, hasPrevious, isLeftJoin, isNextRowSet, isPreviousRowSet, isRightJoin, last, next, nextIndex, previous, previousIndex, set, setJoinCondition, setJoinType, setNextRow, setPreviousRow, toString
 
Methods inherited from class org.axiondb.engine.rowiterators.BaseRowIterator
add, isEmpty, peekNext, peekPrevious, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.axiondb.RowIterator
add, isEmpty, peekNext, peekPrevious, remove
 

Field Detail

INDEX_ON_LEFT_TABLE

public static final int INDEX_ON_LEFT_TABLE
See Also:
Constant Field Values

INDEX_ON_RIGHT_TABLE

public static final int INDEX_ON_RIGHT_TABLE
See Also:
Constant Field Values
Constructor Detail

IndexJoinedRowIterator

public IndexJoinedRowIterator(int keypos,
                              int colcount)

IndexJoinedRowIterator

public IndexJoinedRowIterator(int keypos,
                              int colcount,
                              int iMode)
Method Detail

addRowIterator

public void addRowIterator(RowIterator iterator)
                    throws AxionException
Throws:
AxionException

reset

public void reset()
           throws AxionException
Description copied from interface: RowIterator
Re-initialize this RowIterator to its initial state (positioned just before the first Rowin the list).

Specified by:
reset in interface RowIterator
Overrides:
reset in class BaseJoinedRowIterator
Throws:
AxionException

setNextRow

protected boolean setNextRow()
                      throws AxionException
Specified by:
setNextRow in class BaseJoinedRowIterator
Throws:
AxionException

setPreviousRow

protected boolean setPreviousRow()
                          throws AxionException
Specified by:
setPreviousRow in class BaseJoinedRowIterator
Throws:
AxionException

getShortName

protected String getShortName()
Specified by:
getShortName in class BaseJoinedRowIterator

set

public void set(int rowIndex,
                Row row)
         throws AxionException
Specified by:
set in class BaseJoinedRowIterator
Throws:
AxionException