|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.value.Value com.saxonica.expr.IndexedValue
public class IndexedValue
A representation of a (sequence) value that allows the construction of one or more indexes to provide rapid access to the items in the sequence.
Field Summary |
---|
Fields inherited from class net.sf.saxon.value.Value |
---|
INDETERMINATE_ORDERING |
Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
---|
EMPTY_VALUE_ARRAY |
Constructor Summary | |
---|---|
IndexedValue(SequenceIterator iter)
Construct an indexed value (that is, a value that is capable of being indexed). |
Method Summary | |
---|---|
SequenceIterator |
findItems(SequenceIterable use,
SequenceIterator values,
boolean convertUntypedToOther,
boolean firstOnly,
AtomicComparer comparer,
XPathContext context)
Retrieve items that match a given index value |
int |
getLength()
Get the length of the sequence |
Item |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
SequenceIterator |
iterate()
Return an Iterator to iterate over the values of a sequence. |
Methods inherited from class net.sf.saxon.value.Value |
---|
asItem, asItem, asIterator, asValue, checkPermittedContents, convertToJava, effectiveBooleanValue, equals, fromItem, getCanonicalLexicalRepresentation, getCardinality, getItemType, getIterator, getSchemaComparable, getStringValue, getStringValueCS, hashCode, isIdentical, iterate, process, reduce |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedValue(SequenceIterator iter) throws XPathException
iter
- iterator over the items to be included in the indexed value
XPathException
- if an error occurs reading the iteratorMethod Detail |
---|
public SequenceIterator iterate() throws XPathException
iterate
in class Value
XPathException
- if any dynamic error occurs evaluating the
expressionpublic Item itemAt(int n) throws XPathException
itemAt
in class Value
n
- position of the required item, counting from zero.
XPathException
public int getLength() throws XPathException
getLength
in class Value
XPathException
public SequenceIterator findItems(SequenceIterable use, SequenceIterator values, boolean convertUntypedToOther, boolean firstOnly, AtomicComparer comparer, XPathContext context) throws XPathException
use
- the expression whose value is to be matchedvalues
- the set of values to be foundconvertUntypedToOther
- true if untypedAtomic values are to be converted to the
type of the other operandfirstOnly
- true if only the first matching item is requiredcomparer
- AtomicComparer used to compare values for equality (encapsulates a collation
if necessary)context
- the dynamic evaluation context @return an iterator over the items that match the specified values
XPathException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |