|
||||||||||
| 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.SeqIter
public final class SeqIter
Sequence Iterator.
| Field Summary | |
|---|---|
Item[] |
item
Items. |
| Fields inherited from class org.basex.query.iter.Iter |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
SeqIter()
Constructor. |
|
SeqIter(Item it)
Constructor. |
|
SeqIter(QueryContext c)
Constructor, specifying the query context. |
|
| Method Summary | |
|---|---|
void |
add(Item it)
Adds a single item. |
void |
add(Iter iter)
Adds the contents of an iterator. |
Item |
finish()
Returns a sequence from all iterator values. |
static Iter |
get(Item[] it,
int s)
Constructor. |
static Iter |
get(Iter iter)
Constructor. |
Item |
get(long i)
Returns the specified item. |
Item |
next()
Returns the next item or null if no other items are found. |
void |
pos(int p)
Sets the iterator position. |
boolean |
reset()
Resets the iterator and returns true. |
boolean |
same(Result v)
Compares values for equality. |
void |
serialize(Serializer ser)
Serializes the complete result. |
void |
serialize(Serializer ser,
int n)
Serializes the specified result. |
int |
size()
Returns the number of entries. |
void |
size(int s)
Sets the iterator size. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.iter.Iter |
|---|
iterator, reverse |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Item[] item
| Constructor Detail |
|---|
public SeqIter()
public SeqIter(Item it)
it - initial itempublic SeqIter(QueryContext c)
c - query context| Method Detail |
|---|
public static Iter get(Iter iter)
throws QueryException
iter - iterator
QueryException - evaluation exception
public static Iter get(Item[] it,
int s)
it - item arrays - size
public void add(Iter iter)
throws QueryException
iter - entry to be added
QueryException - evaluation exceptionpublic void add(Item it)
it - item to be addedpublic boolean same(Result v)
Result
same in interface Resultv - value to be compared
public void serialize(Serializer ser)
throws java.io.IOException
Result
serialize in interface Resultser - serializer
java.io.IOException - exception
public void serialize(Serializer ser,
int n)
throws java.io.IOException
Result
serialize in interface Resultser - serializern - number of result to serialize
java.io.IOException - exceptionpublic Item next()
Iter
next in class Iterpublic void pos(int p)
p - positionpublic void size(int s)
s - sizepublic boolean reset()
Iter
reset in class Iterpublic int size()
IterIter.get(long) has to be implemented as well.
size in interface Resultsize in class Iterpublic Item get(long i)
Iter
get in class Iteri - value offset
public Item finish()
IterIter.next().
finish in class Iterpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||