|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.iter.Iter
org.basex.query.iter.NodeIter
org.basex.query.iter.NodIter
public final class NodIter
Simple node Iterator, ignoring duplicates.
| Field Summary | |
|---|---|
Nod[] |
item
Items. |
int |
size
Size. |
| Fields inherited from class org.basex.query.iter.Iter |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
NodIter()
Constructor. |
|
NodIter(boolean d)
Constructor. |
|
NodIter(Nod[] it,
int s)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(Nod n)
Adds a node. |
boolean |
contains(DBNode node)
Checks if the iterator contains a database node with the specified pre value. |
boolean |
dbnodes()
Checks if binary search can be applied to this iterator, i.e. |
void |
delete(int p)
Deletes a value at the specified position. |
Item |
finish()
Returns a sequence from all iterator values. |
Nod |
get(int i)
Returns the specified node. |
Nod |
get(long i)
Returns the specified item. |
Nod |
next()
Returns the next item or null if no other items are found. |
boolean |
reset()
Resets the iterator and returns true. |
int |
size()
Returns the number of entries. |
void |
sort(boolean force)
Sorts the nodes. |
String |
toString()
|
| Methods inherited from class org.basex.query.iter.Iter |
|---|
reverse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Nod[] item
public int size
| Constructor Detail |
|---|
public NodIter()
public NodIter(boolean d)
d - returns if the iterator might return duplicates
public NodIter(Nod[] it,
int s)
it - item arrays - size| Method Detail |
|---|
public Nod get(int i)
i - node offset
public void delete(int p)
p - deletion positionpublic void add(Nod n)
n - node to be addedpublic boolean reset()
Iter
reset in class Iterpublic Nod next()
Iter
next in class NodeIterpublic Nod get(long i)
Iter
get in class Iteri - value offset
public int size()
IterIter.get(long) has to be implemented as well.
size in class Iterpublic Item finish()
IterIter.next().
finish in class Iterpublic boolean dbnodes()
DBNode references and refer to the same database.
public boolean contains(DBNode node)
DBNode references and
sorted.
node - node to be found
public void sort(boolean force)
force - force sortpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||