Database Reference
In-Depth Information
Type/default status
Java; enabled in $EXIST_HOME/conf.xml
Class
org.exist.xquery.functions.securitymanager.SecurityManagerModule
This module is for managing eXist's security settings. You can, for instance, check
whether you have access to a resource by calling sm:has-access . More about security
can be found in Chapter 8 .
sort
Description
Indexes for efficient sorting
Namespace
sort="http://exist-db.org/xquery/sort"
Type/default status
Java; enabled in $EXIST_HOME/conf.xml
Class
org.exist.xquery.modules.sort.SortModule
The sort module lets you create (global, systemwide) indexes to speed up sorting
(with order by clauses) on nodes in FLWOR expressions. This works only for nodes
stored in the database, not nodes in temporary, in-memory XML fragments.
As an example, assume we have an XML document stored in our database that looks
like this:
<NodeSet>
<Node> a </Node>
<Node> B </Node>
<Node> c </Node>
<Node> D </Node>
<Node> e </Node>
<Node> F </Node>
</NodeSet>
Not terribly interesting and not at all difficult or time-consuming to sort, but it serves
the purpose of illustrating how a sort index works. Assume we want to sort the Node
elements based on the uppercase value of their contents, using a sort index. To do
this we first have to create a function that converts the node to sort into an atomic
value. In this case:
 
Search WWH ::




Custom Search