org.axiondb.engine.rowiterators
Class DistinctRowIterator

java.lang.Object
  extended by org.axiondb.engine.rowiterators.BaseRowIterator
      extended by org.axiondb.engine.rowiterators.AbstractFilteringRowIterator
          extended by org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
              extended by org.axiondb.engine.rowiterators.DistinctRowIterator
All Implemented Interfaces:
RowIterator

public class DistinctRowIterator
extends AbstractAcceptingRowIterator

A DelegatingRowIteratorimplementing DISTINCT.

Version:
$Revision: 1.13 $ $Date: 2005/12/20 18:32:41 $

Constructor Summary
DistinctRowIterator(RowIterator iter, java.util.Map selectableMap, Selectable[] selectables)
           
 
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 Rowin the list).
 void set(Row row)
          Not supported in the base implementation.
 java.lang.String toString()
           
 
Methods inherited from class org.axiondb.engine.rowiterators.AbstractAcceptingRowIterator
determineNextRow, determinePreviousRow
 
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
 
Methods inherited from class org.axiondb.engine.rowiterators.BaseRowIterator
add, first, isEmpty, last, next, peekNext, peekPrevious, previous, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistinctRowIterator

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

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 Rowin the list).

Specified by:
reset in interface RowIterator
Overrides:
reset in class AbstractFilteringRowIterator
Throws:
AxionException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

acceptable

protected boolean acceptable(int rowindex,
                             Row row)
                      throws AxionException
Description copied from class: AbstractAcceptingRowIterator
My filtering method. Return true if the given Rowshould be included in the iteration, false otherwise.

Specified by:
acceptable in class AbstractAcceptingRowIterator
Throws:
AxionException