org.axiondb.engine.rowiterators
Class FilteringRowIterator
java.lang.Object
org.axiondb.engine.rowiterators.DelegatingRowIterator
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.9 $ $Date: 2004/08/17 03:19:30 $
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 |
FilteringRowIterator
public FilteringRowIterator(RowIterator iterator,
RowDecorator decorator,
Selectable where)
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()