|
||||||||||
| 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
public abstract class TransformingRowIterator
A DelegatingRowIteratorthat transformseach returned
Row.
| Constructor Summary | |
|---|---|
TransformingRowIterator(RowIterator iter)
|
|
| Method Summary | |
|---|---|
Row |
current()
Returns the last Rowreturned by me (by RowIterator.next(),RowIterator.previous(),
RowIterator.first(),RowIterator.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 |
peekNext()
Return the value that would be returned by a call to RowIterator.next(), if any, but
don't update my position. |
Row |
peekPrevious()
Return the value that would be returned by a call to RowIterator.previous(), if any,
but don't update my position. |
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, next, nextIndex, previous, previousIndex, remove, reset, set, setDelegate, size |
| 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 |
|---|
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 - when a problem occurs accessing the Row
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 - when a problem occurs accessing the Row
public Row next()
throws AxionException
RowIteratorRowin the list, or throws
NoSuchElementExceptionif no next Row exists.
next in interface RowIteratornext in class DelegatingRowIteratorAxionException - when a problem occurs accessing the Row
public Row peekNext()
throws AxionException
RowIteratorRowIterator.next(), if any, but
don't update my position.
peekNext in interface RowIteratorpeekNext in class DelegatingRowIteratorAxionException - when a problem occurs accessing the Row
public Row peekPrevious()
throws AxionException
RowIteratorRowIterator.previous(), if any,
but don't update my position.
peekPrevious in interface RowIteratorpeekPrevious in class DelegatingRowIteratorAxionException - when a problem occurs accessing the Row
public Row previous()
throws AxionException
RowIteratorRowin the list, or throws
NoSuchElementExceptionif no next Row exists.
previous in interface RowIteratorprevious in class DelegatingRowIteratorAxionException - when a problem occurs accessing the Rowprotected abstract Row transform(Row row)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||