org.axiondb.engine.rowiterators
Class FilteringRowIterator
java.lang.Object
org.axiondb.engine.rowiterators.BaseRowIterator
org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
org.axiondb.engine.rowiterators.FilteringRowIterator
- All Implemented Interfaces:
- RowIterator
- Direct Known Subclasses:
- FilteringChangingIndexedRowIterator
public class FilteringRowIterator
- extends AbstractAcceptingRowIterator
A DelegatingRowIterator
that only returns Row
s
that match a given WhereNode
.
- Version:
- $Revision: 1.11 $ $Date: 2005/06/18 01:03:44 $
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 |
FilteringRowIterator
public FilteringRowIterator(RowIterator iterator,
RowDecorator decorator,
Selectable where)
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 Row
should be
included in the iteration, false
otherwise.
- Specified by:
acceptable
in class AbstractAcceptingRowIterator
- Throws:
AxionException