org.axiondb.engine.rowiterators
Class FilteringRowIterator

java.lang.Object
  extended by org.axiondb.engine.rowiterators.BaseRowIterator
      extended by org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
          extended by org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
              extended by org.axiondb.engine.rowiterators.FilteringRowIterator
All Implemented Interfaces:
RowIterator
Direct Known Subclasses:
FilteringChangingIndexedRowIterator

public class FilteringRowIterator
extends AbstractAcceptingRowIterator

A DelegatingRowIterator that only returns Rows that match a given WhereNode.

Version:
$Revision: 1.11 $ $Date: 2005/06/18 01:03:44 $

Constructor Summary
FilteringRowIterator(RowIterator iterator, RowDecorator decorator, Selectable where)
           
 
Method Summary
protected  boolean acceptable(int rowindex, Row row)
          My filtering method.
 String getShortName()
           
 String toString()
           
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
determineNextRow, determinePreviousRow, set
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
clearNextRow, clearPreviousRow, current, currentIndex, getDelegate, hasCurrent, hasNext, hasPrevious, isNextAvailable, isPreviousAvailable, next, nextIndex, previous, previousIndex, remove, reset, setNext, setPrevious
 
Methods inherited from class org.axiondb.engine.rowiterators.BaseRowIterator
add, first, isEmpty, last, next, peekNext, peekPrevious, previous, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilteringRowIterator

public FilteringRowIterator(RowIterator iterator,
                            RowDecorator decorator,
                            Selectable where)
Method Detail

getShortName

public String getShortName()

toString

public String toString()
Overrides:
toString in class Object

acceptable

protected boolean acceptable(int rowindex,
                             Row row)
                      throws AxionException
Description copied from class: AbstractAcceptingRowIterator
My filtering method. Return true if the given Rowshould be included in the iteration, false otherwise.

Specified by:
acceptable in class AbstractAcceptingRowIterator
Throws:
AxionException