|
||||||||||
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 DelegatingRowIterator
that
transforms
each returned Row
.
Constructor Summary | |
---|---|
TransformingRowIterator(RowIterator iter)
|
Method Summary | |
---|---|
Row |
current()
Returns the last Row returned by me (by RowIterator.next() ,RowIterator.previous() ,
RowIterator.first() ,RowIterator.last() , etc.). |
Row |
first()
Returns the first Row in the list, positioning the cursor to just before
the first Row in the list. |
Row |
last()
Returns the last Row in the list, positioning the cursor to just after the
last Row in the list. |
Row |
next()
Returns the next Row in the list, or throws
NoSuchElementException if no next Row exists. |
Row |
previous()
Returns the previous Row in the list, or throws
NoSuchElementException if 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()
RowIterator
Row
returned by me (by RowIterator.next()
,RowIterator.previous()
,
RowIterator.first()
,RowIterator.last()
, etc.).
current
in interface RowIterator
current
in class DelegatingRowIterator
public Row first() throws AxionException
RowIterator
Row
in the list, positioning the cursor to just before
the first Row
in 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 RowIterator
first
in class DelegatingRowIterator
AxionException
- when a problem occurs accessing the Row
public Row last() throws AxionException
RowIterator
Row
in the list, positioning the cursor to just after the
last Row
in 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 RowIterator
last
in class DelegatingRowIterator
AxionException
- when a problem occurs accessing the Row
public Row next() throws AxionException
RowIterator
Row
in the list, or throws
NoSuchElementException
if no next Row
exists.
next
in interface RowIterator
next
in class DelegatingRowIterator
AxionException
- when a problem occurs accessing the Row
public Row previous() throws AxionException
RowIterator
Row
in the list, or throws
NoSuchElementException
if no next Row
exists.
previous
in interface RowIterator
previous
in class DelegatingRowIterator
AxionException
- when a problem occurs accessing the Row
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |