org.axiondb.engine.rowiterators
Class DistinctRowIterator

java.lang.Object
  extended byorg.axiondb.engine.rowiterators.DelegatingRowIterator
      extended byorg.axiondb.engine.rowiterators.AbstractFilteringRowIterator
          extended byorg.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
              extended byorg.axiondb.engine.rowiterators.DistinctRowIterator
All Implemented Interfaces:
RowIterator

public class DistinctRowIterator
extends AbstractAcceptingRowIterator

A DelegatingRowIteratorimplementing DISTINCT.

Version:
$Revision: 1.9 $ $Date: 2004/09/09 23:47:43 $

Constructor Summary
DistinctRowIterator(RowIterator iter, Map selectableMap, Selectable[] selectables)
           
 
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 Rowin the list).
 String toString()
           
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
determineNextRow, determinePreviousRow
 
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
 
Methods inherited from class org.axiondb.engine.rowiterators.DelegatingRowIterator
getDelegate, isEmpty, setDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistinctRowIterator

public DistinctRowIterator(RowIterator iter,
                           Map selectableMap,
                           Selectable[] selectables)
Method Detail

reset

public void reset()
           throws AxionException
Description copied from interface: RowIterator
Re-initialize this RowIterator to its initial state (positioned just before the first Rowin 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