public class XQueryExecutable extends 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 |
---|---|
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 XQueryExpression getUnderlyingCompiledQuery()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.