com.ibm.tspaces.xtuples
Class XQueryImpl

java.lang.Object
  |
  +--com.ibm.tspaces.xtuples.XQueryImpl

public class XQueryImpl
extends java.lang.Object

The XQueryImpl class support simple queries on the XTuple structure, providing a simple subset of the XQL query language. Here is a short list of functionality and their relative status: 0. parsing XQL style query string 1. path expressions, including wildcards * 2. attribute searches 3. aggregate queries and joins Finished: 0, 1, 2, In progress: Not present: 3

Author:
Ben Y. Zhao
See Also:
TSXQuery, SubPath, XTuple, TupleTree, XTupleException

Constructor Summary
XQueryImpl(com.ibm.tspaces.server.TSDB tsdb, java.lang.String clientID_)
          Simple constructor that just assigns the value to the TSDB in use
 
Method Summary
 java.util.Vector processQuery(TSXQuery xq)
          The method that takes in an xquery, and executes it on the current TSDB contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQueryImpl

public XQueryImpl(com.ibm.tspaces.server.TSDB tsdb,
                  java.lang.String clientID_)
Simple constructor that just assigns the value to the TSDB in use
Parameters:
tsdb - the TSDB in use
Method Detail

processQuery

public java.util.Vector processQuery(TSXQuery xq)
                              throws XTupleException
The method that takes in an xquery, and executes it on the current TSDB contents. It returns a vector of the tuples that satisfy the query.
Parameters:
xq - The XQuery object generated from parsing the XQL string
Returns:
vector of tuples which satisfy the request