org.axiondb.engine.rowiterators
Class DistinctRowIterator
java.lang.Object
org.axiondb.engine.rowiterators.BaseRowIterator
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.13 $ $Date: 2005/12/20 18:32:41 $
Method Summary |
protected boolean |
acceptable(int rowindex,
Row row)
My filtering method. |
void |
remove()
Not supported in the base implementation. |
void |
reset()
Re-initialize this RowIterator to its initial state (positioned just
before the first Row in the list). |
void |
set(Row row)
Not supported in the base implementation. |
String |
toString()
|
Methods inherited from class org.axiondb.engine.rowiterators.AbstractFilteringRowIterator |
clearNextRow, clearPreviousRow, current, currentIndex, getDelegate, hasCurrent, hasNext, hasPrevious, isNextAvailable, isPreviousAvailable, next, nextIndex, previous, previousIndex, setNext, setPrevious |
DistinctRowIterator
public DistinctRowIterator(RowIterator iter,
Map selectableMap,
Selectable[] selectables)
set
public void set(Row row)
throws AxionException
- Not supported in the base implementation.
- Specified by:
set
in interface RowIterator
- Overrides:
set
in class AbstractAcceptingRowIterator
- Throws:
AxionException
remove
public void remove()
throws AxionException
- Not supported in the base implementation.
- Specified by:
remove
in interface RowIterator
- Overrides:
remove
in class AbstractFilteringRowIterator
- Throws:
AxionException
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()
- 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