org.exist.xquery
Class Optimize
java.lang.Object
org.exist.xquery.Pragma
org.exist.xquery.Optimize
public class Optimize
- extends Pragma
OPTIMIZE_PRAGMA
public static final QName OPTIMIZE_PRAGMA
Optimize
public Optimize(XQueryContext context,
QName pragmaName,
String contents,
boolean explicit)
throws XPathException
- Throws:
XPathException
analyze
public void analyze(AnalyzeContextInfo contextInfo)
throws XPathException
- Overrides:
analyze
in class Pragma
- Throws:
XPathException
eval
public Sequence eval(Sequence contextSequence,
Item contextItem)
throws XPathException
- Overrides:
eval
in class Pragma
- Throws:
XPathException
before
public void before(XQueryContext context,
Expression expression)
throws XPathException
- Specified by:
before
in class Pragma
- Throws:
XPathException
after
public void after(XQueryContext context,
Expression expression)
throws XPathException
- Specified by:
after
in class Pragma
- Throws:
XPathException
resetState
public void resetState(boolean postOptimization)
- Overrides:
resetState
in class Pragma
getQNameIndexType
public static int getQNameIndexType(XQueryContext context,
Sequence contextSequence,
QName qname)
- Check every collection in the context sequence for an existing range index by QName.
- Parameters:
contextSequence
-
- Returns:
- the type of a usable index or
Type.ITEM
if there is no common
index.
Copyright (C) Wolfgang Meier. All rights reserved.