net.sf.saxon.value

Class MemoClosure.ProgressiveIterator

public final class MemoClosure.ProgressiveIterator extends Object implements SequenceIterator, LastPositionFinder, GroundedIterator

A ProgressiveIterator starts by reading any items already held in the reservoir; when the reservoir is exhausted, it reads further items from the inputIterator, copying them into the reservoir as they are read.
Field Summary
intposition
Constructor Summary
ProgressiveIterator()
Method Summary
Itemcurrent()
SequenceIteratorgetAnother()
intgetLastPosition()
Get the last position (that is, the number of items in the sequence)
intgetProperties()
Get properties of this iterator, as a bit-significant integer.
Valuematerialize()
Return a value containing all the items in the sequence returned by this SequenceIterator
Itemnext()
intposition()

Field Detail

position

int position

Constructor Detail

ProgressiveIterator

public ProgressiveIterator()

Method Detail

current

public Item current()

getAnother

public SequenceIterator getAnother()

getLastPosition

public int getLastPosition()
Get the last position (that is, the number of items in the sequence)

getProperties

public int getProperties()
Get properties of this iterator, as a bit-significant integer.

Returns: the properties of this iterator. This will be some combination of properties such as GROUNDED and LAST_POSITION_FINDER. It is always acceptable to return the value zero, indicating that there are no known special properties.

materialize

public Value materialize()
Return a value containing all the items in the sequence returned by this SequenceIterator

Returns: the corresponding value

next

public Item next()

position

public int position()