|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.s9api.XQueryExecutable
public class XQueryExecutable
An XQueryExecutable represents the compiled form of a query.
To execute the query, it must first be loaded to form an 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.
Constructor Summary | |
---|---|
protected |
XQueryExecutable(Processor processor,
XQueryExpression exp)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XQueryExecutable(Processor processor, XQueryExpression exp)
Method Detail |
---|
public XQueryEvaluator load()
public ItemType getResultItemType()
public OccurrenceIndicator getResultCardinality()
public boolean isUpdateQuery()
public XQueryExpression getUnderlyingCompiledQuery()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |