public class XQueryExecutable
extends java.lang.Object
XQueryEvaluator
.
An XQueryExecutable is immutable, and therefore thread-safe. It is simplest to load a new XQueryEvaluator each time the query is to be run. However, the XQueryEvaluator is serially reusable within a single thread.
An XQueryExecutable is created by using one of the compile
methods on the
XQueryCompiler
class.
Modifier | Constructor and Description |
---|---|
protected |
XQueryExecutable(Processor processor,
XQueryExpression exp) |
Modifier and Type | Method and Description |
---|---|
void |
explain(Destination destination)
Produce a diagnostic representation of the compiled query, in XML form.
|
OccurrenceIndicator |
getResultCardinality()
Get the statically-determined cardinality of the result of the query.
|
ItemType |
getResultItemType()
Get the ItemType of the items in the result of the query, as determined by static analysis.
|
XQueryExpression |
getUnderlyingCompiledQuery()
Get the underlying implementation object representing the compiled stylesheet.
|
boolean |
isUpdateQuery()
Ask whether the query is an updating query: that is, whether it returns a Pending Update List
rather than a Value.
|
XQueryEvaluator |
load()
Load the stylesheet to prepare it for execution.
|
protected XQueryExecutable(Processor processor, XQueryExpression exp)
public XQueryEvaluator load()
public ItemType getResultItemType()
public OccurrenceIndicator getResultCardinality()
public boolean isUpdateQuery()
public void explain(Destination destination) throws SaxonApiException
The detailed form of this representation is not stable (or even documented).
destination
- the destination for the XML document containing the diagnostic representation
of the compiled stylesheetSaxonApiException
public XQueryExpression getUnderlyingCompiledQuery()
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.