|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.tspaces.xtuples.TSXQuery
The TSXQuery class encapsulates a single XQL-like query Here is the list of components inside an TSXQuery 1. boolean anchored - whether this query has a leading "/" 2. Stack path - main list of path references, which include possible encapsulated objects with attributes and other query specifications, stored in stack order, with the last subpath at the top of the stack.
Query,
TSMMDB,
SubPath,
XQueryImpl,
XTuple,
TupleTree,
XTupleException, Serialized Form| Constructor Summary | |
TSXQuery(java.lang.String xquerystring)
The TSXQuery constructor that takes then entire XQL-like query string and converts it to a sequence of SubPath objects for easy evaluation. |
|
TSXQuery(XMLQuery xmlquery)
The TSXQuery constructor that takes a XMLQuery-wrapped query string as input |
|
| Method Summary | |
java.util.Vector |
apply()
The method that applies the query to the TSMMDB that I've got It creates an instance of XQueryImpl and then calls the processQuery method for that class. |
void |
config(com.ibm.tspaces.server.tsmmdb.TSMMDB db_,
java.lang.String clientID_)
The setup method that saves the db pointer |
SuperTuple |
getOrigTuple()
Returns a tuple corresponding to the original XML tuple that was used to insert the XML document. |
java.util.Stack |
getPath()
Stack getPath() * The method returns the stack containing the query path expression |
Tuple |
getTupleSet()
Returns a tuple corresponding to the set of tuples that this query should operate on. |
boolean |
isAnchored()
The method returns whether the current query is anchored to the document root |
static void |
main(java.lang.String[] argv)
|
boolean |
satisfiedBy(com.ibm.tspaces.server.tsmmdb.ResultTuple rt)
A method that's used to perform XQL queries on an XML document (vs. |
void |
setTupleSet(Tuple set)
Sets the tuple corresponding to the set of tuples that this query should operate on. |
int |
size()
Returns our best guess at the potential size of the result of this query For XMLQueries this is hard to say, but this is really an issue of how many documents of each DTD type are stored inside the TSDB. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TSXQuery(XMLQuery xmlquery)
xmlquery - The XMLQuery object passed in by query.QueryPlanpublic TSXQuery(java.lang.String xquerystring)
xquerystring - is the XQL-like query string to be converted| Method Detail |
public boolean isAnchored()
public java.util.Stack getPath()
public void config(com.ibm.tspaces.server.tsmmdb.TSMMDB db_,
java.lang.String clientID_)
throws com.ibm.tspaces.server.tsmmdb.TSMMDBException
db_ - The TSDB that the query is performed onclientID_ - The clientID from the client
public int size()
throws com.ibm.tspaces.server.tsmmdb.TSMMDBException
public java.util.Vector apply()
throws com.ibm.tspaces.server.tsmmdb.TSMMDBException,
com.ibm.tspaces.lock.LMAbortedException
public boolean satisfiedBy(com.ibm.tspaces.server.tsmmdb.ResultTuple rt)
throws com.ibm.tspaces.server.tsmmdb.TSMMDBException
public SuperTuple getOrigTuple()
public Tuple getTupleSet()
public void setTupleSet(Tuple set)
public static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||