org.axiondb.engine.rowiterators
Class DistinctRowIterator
java.lang.Object
org.axiondb.engine.rowiterators.DelegatingRowIterator
org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
org.axiondb.engine.rowiterators.DistinctRowIterator
- All Implemented Interfaces:
- RowIterator
- public class DistinctRowIterator
- extends AbstractAcceptingRowIterator
A DelegatingRowIterator
implementing DISTINCT.
- Version:
- $Revision: 1.9 $ $Date: 2004/09/09 23:47:43 $
Method Summary |
protected boolean |
acceptable(int rowindex,
Row row)
My filtering method. |
void |
reset()
Re-initialize this RowIterator to its initial state (positioned just
before the first Row in the list). |
String |
toString()
|
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, set, setNext, setPrevious |
DistinctRowIterator
public DistinctRowIterator(RowIterator iter,
Map selectableMap,
Selectable[] selectables)
reset
public void reset()
throws AxionException
- Description copied from interface:
RowIterator
- Re-initialize this
RowIterator
to its initial state (positioned just
before the first Row
in the list).
- Specified by:
reset
in interface RowIterator
- Overrides:
reset
in class AbstractFilteringRowIterator
- Throws:
AxionException
toString
public String toString()
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