public class DistinctRowIterator extends AbstractAcceptingRowIterator
DelegatingRowIterator
implementing DISTINCT.Constructor and Description |
---|
DistinctRowIterator(RowIterator iter,
java.util.Map selectableMap,
Selectable[] selectables) |
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
toString() |
determineNextRow, determinePreviousRow
clearNextRow, clearPreviousRow, current, currentIndex, getDelegate, hasCurrent, hasNext, hasPrevious, isNextAvailable, isPreviousAvailable, next, nextIndex, previous, previousIndex, setNext, setPrevious
add, first, isEmpty, last, next, peekNext, peekPrevious, previous, size
public DistinctRowIterator(RowIterator iter, java.util.Map selectableMap, Selectable[] selectables)
public void set(Row row) throws AxionException
set
in interface RowIterator
set
in class AbstractAcceptingRowIterator
AxionException
public void remove() throws AxionException
remove
in interface RowIterator
remove
in class AbstractFilteringRowIterator
AxionException
public void reset() throws AxionException
RowIterator
RowIterator
to its initial state (positioned just
before the first Row
in the list).reset
in interface RowIterator
reset
in class AbstractFilteringRowIterator
AxionException
public java.lang.String toString()
toString
in class java.lang.Object
protected boolean acceptable(int rowindex, Row row) throws AxionException
AbstractAcceptingRowIterator
true
if the given Row
should be
included in the iteration, false
otherwise.acceptable
in class AbstractAcceptingRowIterator
AxionException