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)
throws XPathException
- 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
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.