|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.util.SimpleConfigurable | +--org.apache.xindice.core.query.QueryEngine
QueryEngine is the Xindice Query Engine. Its purpose is to orchestrate query operations against the Xindice repository. The QueryEngine basically just manages a set of QueryResolvers that actually perform the work.
Constructor Summary | |
QueryEngine(Database db)
|
Method Summary | |
static Key[] |
andKeySets(Key[][] keySets)
andKeySets takes several sets of unique Keys and returns the ANDed set (elements that exist in all sets). |
Query |
compileQuery(Collection col,
java.lang.String style,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
compileQuery compiles a Query against the specified Collection context and returns the compiled Query. |
static java.lang.String |
expandEntities(java.lang.String value)
expandEntities expands the String's pre-defined XML entities (<, >, etc...) into their actual character representations. |
Database |
getDatabase()
|
static Key[] |
getUniqueKeys(IndexMatch[] matches)
getUniqueKeys takes a set of IndexMatch objects and extracts all of its unique Keys in sorted order. |
java.lang.String[] |
listStyles()
listStyles returns a list of styles supported by the QueryEngine (ex: XPath, XUpdate) |
static java.lang.String |
normalizeString(java.lang.String value)
normalizeString normalizes the specific String by stripping all leading, trailing, and continuous runs of white space. |
static Key[] |
orKeySets(Key[][] keySets)
orKeySets takes several sets of unique Keys and returns the ORed set (all unique elements). |
NodeSet |
query(Collection col,
java.lang.String style,
java.lang.String query,
NamespaceMap nsMap,
Key[] keys)
query performs the specified query and returns a NodeSet with any possible results from that query. |
void |
setConfig(Configuration config)
setConfig sets the configuration information for the Configurable object instance. |
Methods inherited from class org.apache.xindice.util.SimpleConfigurable |
getConfig |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryEngine(Database db)
Method Detail |
public void setConfig(Configuration config) throws XindiceException
Configurable
setConfig
in class SimpleConfigurable
org.apache.xindice.util.Configurable
config
- The configuration Nodepublic Database getDatabase()
public java.lang.String[] listStyles()
public NodeSet query(Collection col, java.lang.String style, java.lang.String query, NamespaceMap nsMap, Key[] keys) throws DBException, QueryException
col
- The Collection contextstyle
- The query style (XPath, Fulltext, etc...)query
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)public Query compileQuery(Collection col, java.lang.String style, java.lang.String query, NamespaceMap nsMap, Key[] keys) throws DBException, QueryException
col
- The Collection contextstyle
- The query style (XPath, Fulltext, etc...)query
- The QuerynsMap
- The namespace Map (if any)keys
- The initial Key set to use (if any)public static Key[] getUniqueKeys(IndexMatch[] matches)
matches
- The Match Setpublic static Key[] andKeySets(Key[][] keySets)
keySets
- 2-dimensional set of Keyspublic static Key[] orKeySets(Key[][] keySets)
keySets
- 2-dimensional set of Keyspublic static java.lang.String normalizeString(java.lang.String value)
value
- The value to normalizepublic static java.lang.String expandEntities(java.lang.String value)
value
- The value to expand entities for
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |