|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.saxonica.extra.IndexedSequence
This class represents a sequence (of nodes or atomic values) that can be accessed either in the same way as any other sequence, or via an index. An expression is provided to calculate the index values for each item in the sequence. Each item in the sequence is indexed on each of the atomic values that results from atomizing the result of this expression, when evaluated with that item as the context item.
Constructor Summary | |
IndexedSequence(Value sequence,
Expression key,
java.util.Comparator collator,
XPathContext context)
Construct an indexed sequence |
Method Summary | |
SequenceIterator |
find(AtomicValue value)
Get an iterator over the items with a given key value |
Value |
getSequence()
Get the entire sequence |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IndexedSequence(Value sequence, Expression key, java.util.Comparator collator, XPathContext context) throws XPathException
sequence
- the sequence to be indexedkey
- the expression used to compute the key values for each item in the sequencecontext
- the context for evaluation
XPathException
- if evaluation of the key values fails for any reasonMethod Detail |
public Value getSequence()
public SequenceIterator find(AtomicValue value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |