| Modifier and Type | Class and Description |
|---|---|
class |
MemoSequence.ProgressiveIterator
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected static int |
EMPTY |
protected int |
state |
| Constructor and Description |
|---|
MemoSequence(SequenceIterator iterator) |
| Modifier and Type | Method and Description |
|---|---|
Item |
head()
Get the first item in the sequence.
|
SequenceIterator |
iterate()
Get an iterator
performance characteristics, though all should exhibit the same behaviour.over all the items in the sequence
|
protected int state
protected static final int EMPTY
public MemoSequence(SequenceIterator iterator)
public Item head() throws XPathException
Sequencehead in interface SequenceXPathException - in the situation where the sequence is evaluated lazily, and
evaluation of the first item causes a dynamic error.public SequenceIterator iterate() throws XPathException
Sequenceiterate in interface SequenceXPathException - in the situation where the sequence is evaluated lazily, and
constructing an iterator over the items causes a dynamic error.Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.