org.axiondb.engine.rowiterators
Class AbstractAcceptingRowIterator

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

public abstract class AbstractAcceptingRowIterator
extends AbstractFilteringRowIterator

Abstract base DelegatingRowIterator that excludes Rows that are not acceptable.

Version:
$Revision: 1.3 $ $Date: 2004/09/09 23:47:43 $

Constructor Summary
AbstractAcceptingRowIterator(RowIterator iterator)
           
 
Method Summary
protected abstract  boolean acceptable(int rowindex, Row row)
          My filtering method.
protected  boolean determineNextRow()
           
protected  boolean 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, toString, wait, wait, wait
 

Constructor Detail

AbstractAcceptingRowIterator

public AbstractAcceptingRowIterator(RowIterator iterator)
Method Detail

acceptable

protected abstract boolean acceptable(int rowindex,
                                      Row row)
                               throws AxionException
My filtering method. Return true if the given Row should be included in the iteration, false otherwise.

Throws:
AxionException

determineNextRow

protected boolean determineNextRow()
                            throws AxionException
Specified by:
determineNextRow in class AbstractFilteringRowIterator
Throws:
AxionException

determinePreviousRow

protected boolean determinePreviousRow()
                                throws AxionException
Specified by:
determinePreviousRow in class AbstractFilteringRowIterator
Throws:
AxionException