|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.saxon.value.Value<T>
com.saxonica.expr.IndexedValue<T>
public class IndexedValue<T extends Item>
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<T> iter)
Construct an indexed value (that is, a value that is capable of being indexed). |
|
| Method Summary | |
|---|---|
SequenceIterator<T> |
findItems(Expression 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 |
T |
itemAt(int n)
Get the n'th item in the sequence (starting from 0). |
SequenceIterator<T> |
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, getSequenceLength, getStringValue, getStringValueCS, hashCode, isIdentical, process, reduce |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedValue(SequenceIterator<T> iter)
throws XPathException
iter - iterator over the items to be included in the indexed value
XPathException - if an error occurs reading the iterator| Method Detail |
|---|
public SequenceIterator<T> iterate()
throws XPathException
iterate in class Value<T extends Item>XPathException - if any dynamic error occurs evaluating the
expression
public T itemAt(int n)
throws XPathException
itemAt in class Value<T extends Item>n - position of the required item, counting from zero.
XPathException - if an error occurs (for example if the
value is a Closure that needs to be evaluated to find the Nth item)
public int getLength()
throws XPathException
getLength in class Value<T extends Item>XPathException - if an error occurs (for example if the value is
a closure that needs to be read to determine its length)
public SequenceIterator<T> findItems(Expression 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 | ||||||||