|
|||||||
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.extra.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 |
---|
EMPTY_CLASS_ARRAY, 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,
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, convertJavaObjectToXPath, convertToJava, convertToJava, effectiveBooleanValue, equals, fromItem, getCanonicalLexicalRepresentation, getCardinality, getItemType, getIterator, getSchemaComparable, getStringValue, getStringValueCS, iterate, makeQNameValue, process, reduce, stringToNumber, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, 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, 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 operandcomparer
- AtomicComparer used to compare values for equality (encapsulates a collation
if necessary)context
- the dynamic evaluation context
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |