|
||||||||||
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 |
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 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, 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()
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 peekNext() throws AxionException
RowIterator
RowIterator.next()
, if any, but
don't update my position.
peekNext
in interface RowIterator
peekNext
in class DelegatingRowIterator
AxionException
- when a problem occurs accessing the Row
public Row peekPrevious() throws AxionException
RowIterator
RowIterator.previous()
, if any,
but don't update my position.
peekPrevious
in interface RowIterator
peekPrevious
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
protected abstract Row transform(Row row)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |