public class KeyIndex
extends java.lang.Object
Constructor and Description |
---|
KeyIndex(boolean isRangeKey) |
Modifier and Type | Method and Description |
---|---|
void |
buildIndex(KeyDefinitionSet keySet,
TreeInfo doc,
XPathContext context)
Build the index for a particular document for a named key
|
java.util.List<NodeInfo> |
get(AtomicValue soughtValue)
Get the nodes with a given key value
|
java.util.List<NodeInfo> |
getComposite(SequenceIterator soughtValue)
Get the nodes with a given composite key value
|
java.util.Map<AtomicMatchKey,java.util.List<NodeInfo>> |
getUnderlyingMap()
Get the underlying map
|
boolean |
isEmpty()
Ask whether the index is empty
|
void |
reindexUntypedValues(BuiltInAtomicType type)
Re-index untyped atomic values after conversion to a specific type.
|
public java.util.Map<AtomicMatchKey,java.util.List<NodeInfo>> getUnderlyingMap()
public void buildIndex(KeyDefinitionSet keySet, TreeInfo doc, XPathContext context) throws XPathException
keySet
- The set of key definitions with this namedoc
- The source document in questioncontext
- The dynamic contextXPathException
- if a dynamic error is encounteredpublic void reindexUntypedValues(BuiltInAtomicType type) throws XPathException
type
- the type to which untyped atomic values should be convertedXPathException
- if conversion of any untyped atomic value to the requested key type failspublic boolean isEmpty()
public java.util.List<NodeInfo> get(AtomicValue soughtValue) throws XPathException
soughtValue
- The required key valueXPathException
- if a dynamic error is encounteredpublic java.util.List<NodeInfo> getComposite(SequenceIterator soughtValue) throws XPathException
soughtValue
- The required composite key valueXPathException
- if a dynamic error is encounteredCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.