|
||||||||||
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.ChangingIndexedRowIterator
public class ChangingIndexedRowIterator
A DelegatingRowIterator
that is wraps
a RowIterator
from some Index
,
and that can be reset
to recreate the iterator
for a new bound value
.
BaseTable.getIndexedRows(org.axiondb.Selectable, boolean)
,
Index
,
BindVariable
Constructor Summary | |
---|---|
ChangingIndexedRowIterator(Index index,
Table table,
Function fn)
|
Method Summary | |
---|---|
String |
getShortName()
|
boolean |
hasNext()
Returns true if I have more Row s when traversing the list
in the forward direction. |
boolean |
hasPrevious()
Returns true if I have more Row s when traversing the list
in the reverse direction. |
boolean |
indexSet()
|
boolean |
isEmpty()
Returns true if there are no rows to report with this iterator. |
void |
removeIndexKey()
|
void |
reset()
Re-initialize this RowIterator to its initial state (positioned just
before the first Row in the list). |
void |
setIndexKey(Object value)
|
String |
toString()
|
Methods inherited from class org.axiondb.engine.rowiterators.DelegatingRowIterator |
---|
add, current, currentIndex, first, getDelegate, hasCurrent, last, next, nextIndex, peekNext, peekPrevious, previous, previousIndex, remove, set, setDelegate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.axiondb.RowIterator |
---|
add, current, currentIndex, first, hasCurrent, last, next, nextIndex, peekNext, peekPrevious, previous, previousIndex, remove, set |
Constructor Detail |
---|
public ChangingIndexedRowIterator(Index index, Table table, Function fn) throws AxionException
AxionException
Method Detail |
---|
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 DelegatingRowIterator
AxionException
public void removeIndexKey() throws AxionException
removeIndexKey
in interface MutableIndexedRowIterator
AxionException
public boolean isEmpty()
RowIterator
true
if there are no rows to report with this iterator.
isEmpty
in interface RowIterator
isEmpty
in class DelegatingRowIterator
public void setIndexKey(Object value) throws AxionException
setIndexKey
in interface MutableIndexedRowIterator
AxionException
public boolean indexSet()
indexSet
in interface MutableIndexedRowIterator
public boolean hasNext()
RowIterator
true
if I have more Row
s when traversing the list
in the forward direction. (In other words, returns true
iff
RowIterator.next()
would return a Row
rather than throwing an exception.)
hasNext
in interface RowIterator
hasNext
in class DelegatingRowIterator
public boolean hasPrevious()
RowIterator
true
if I have more Row
s when traversing the list
in the reverse direction. (In other words, returns true
iff
RowIterator.previous()
would return a Row
rather than throwing an exception.)
hasPrevious
in interface RowIterator
hasPrevious
in class DelegatingRowIterator
public String toString()
toString
in class Object
public String getShortName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |