|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--edu.berkeley.cs.db.yfilter.filterinstance.FilterInstance
A wrapper thread around the filter engine that provides an API to access the message queue, the document queue and the results.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
FilterInstance()
Constructor Creates an EXfilter instance. |
Method Summary | |
java.util.Hashtable |
addQuery(java.lang.String queryFile)
Adds a query to the query queue |
java.util.Hashtable |
bindDoc(java.lang.String strFileName)
Enqueues an XML document or documents to the document queue |
void |
deleteQuery(int qid)
Marks query for deletion. |
java.util.Hashtable |
dynamicQueries(int rate,
java.lang.String dtdAbsolutePath)
Generates queries based on ms "milliseconds" and the rate |
java.util.Hashtable |
generateQueries(long amount)
Generate queries and put them into buffer |
EXfilter |
getInstance()
Returns an EXfilter instance |
java.lang.String |
getResult(int qid,
int docID)
For a given query, returns the matched paths |
QueryParser |
parseQueryFile(java.lang.String queryFile)
|
void |
run()
|
int |
setDynamicQueryRate(int rate)
Sets the query arrival rate and returns the previous value. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FilterInstance()
Method Detail |
public EXfilter getInstance()
public int setDynamicQueryRate(int rate)
rate
- the new query arrival rate (queries/sec)
public QueryParser parseQueryFile(java.lang.String queryFile)
public java.util.Hashtable dynamicQueries(int rate, java.lang.String dtdAbsolutePath)
rate
- Query arrival rate in documents/secdtdAbsolutePath
- Absolute path to the DTD path
public java.util.Hashtable generateQueries(long amount)
amount
- Number of queries
public java.util.Hashtable addQuery(java.lang.String queryFile)
queryFile
- a file containing XPath queries
public java.util.Hashtable bindDoc(java.lang.String strFileName)
public java.lang.String getResult(int qid, int docID)
docID
- a doc hash or a doc id
public void deleteQuery(int qid)
qid
- The query hash or query idpublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |