org.axiondb.engine.rowiterators
Class AbstractAcceptingRowIterator
java.lang.Object
org.axiondb.engine.rowiterators.DelegatingRowIterator
org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
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 Row
s that are not acceptable
.
- Version:
- $Revision: 1.3 $ $Date: 2004/09/09 23:47:43 $
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAcceptingRowIterator
public AbstractAcceptingRowIterator(RowIterator iterator)
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