org.axiondb.engine.rowiterators
Class FilteringRowIterator

java.lang.Object
  extended by org.axiondb.engine.rowiterators.DelegatingRowIterator
      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.9 $ $Date: 2004/08/17 03:19:30 $

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
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
add, clearNextRow, clearPreviousRow, current, currentIndex, first, hasCurrent, hasNext, hasPrevious, isNextAvailable, isPreviousAvailable, last, next, nextIndex, peekNext, peekPrevious, previous, previousIndex, remove, reset, set, setNext, setPrevious
 
Methods inherited from class org.axiondb.engine.rowiterators.DelegatingRowIterator
getDelegate, isEmpty, setDelegate
 
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

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 Row should be included in the iteration, false otherwise.

Specified by:
acceptable in class AbstractAcceptingRowIterator
Throws:
AxionException

getShortName

public String getShortName()