|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.engine.rowiterators.DelegatingRowIterator
org.axiondb.engine.rowiterators.TransformingRowIterator
A DelegatingRowIterator that
transforms
each returned Row.
| Constructor Summary | |
TransformingRowIterator(RowIterator iter)
|
|
| Method Summary | |
Row |
current()
Returns the last Rowreturned by me (by next(),previous(),
first(),last(), etc.). |
Row |
first()
Returns the first Rowin the list, positioning the cursor to just before
the first Rowin the list. |
Row |
last()
Returns the last Rowin the list, positioning the cursor to just after the
last Rowin the list. |
Row |
next()
Returns the next Rowin the list, or throws
NoSuchElementExceptionif no next Row exists. |
Row |
previous()
Returns the previous Rowin the list, or throws
NoSuchElementExceptionif no next Row exists. |
protected abstract Row |
transform(Row row)
|
| Methods inherited from class org.axiondb.engine.rowiterators.DelegatingRowIterator |
add, currentIndex, getDelegate, hasCurrent, hasNext, hasPrevious, isEmpty, nextIndex, peekNext, peekPrevious, previousIndex, remove, reset, set, setDelegate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransformingRowIterator(RowIterator iter)
| Method Detail |
protected abstract Row transform(Row row)
public Row current()
RowIteratorRowreturned by me (by RowIterator.next(),RowIterator.previous(),
RowIterator.first(),RowIterator.last(), etc.).
current in interface RowIteratorcurrent in class DelegatingRowIterator
public Row first()
throws AxionException
RowIteratorRowin the list, positioning the cursor to just before
the first Rowin the list. (In other words, after first is
called both RowIterator.next()and RowIterator.current()will return the first row in the
list.)
first in interface RowIteratorfirst in class DelegatingRowIteratorAxionException
public Row last()
throws AxionException
RowIteratorRowin the list, positioning the cursor to just after the
last Rowin the list. (In other words, after last is called
both RowIterator.previous()and RowIterator.current()will return the last row in the list.)
last in interface RowIteratorlast in class DelegatingRowIteratorAxionException
public Row next()
throws AxionException
RowIteratorRowin the list, or throws
NoSuchElementExceptionif no next Row exists.
next in interface RowIteratornext in class DelegatingRowIteratorAxionException
public Row previous()
throws AxionException
RowIteratorRowin the list, or throws
NoSuchElementExceptionif no next Row exists.
previous in interface RowIteratorprevious in class DelegatingRowIteratorAxionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||