|
||||||||||
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.icdedemo.ICDEDemo
Field Summary | |
double |
m_dSlash
|
char |
m_levelDist
|
int |
m_maxDepth
|
int |
m_maxLevel
|
int |
m_maxRepeats
|
double |
m_nestedPath
|
double |
m_predProb
|
double |
m_wildcard
|
static java.lang.String |
m_yfilter_home
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ICDEDemo(java.lang.String dtdAbsolutePath)
|
|
ICDEDemo(java.lang.String dtdAbsolutePath,
Framework frame)
|
Method Summary | |
void |
addQueriesToFilter()
Adds all queries in the query buffer to Xfilter |
void |
addQueryToBuffer(java.lang.String queryString)
Adds one query string to buffer and also stores it on file. |
void |
batchMode()
|
void |
changeDirectory(java.lang.String dir)
|
void |
changeQueryBufferSize(int size)
|
void |
changeXMLBufferSize(int size)
|
void |
cycle()
|
void |
dequeueQuery()
Removes the last element in the query buffer |
XMLTree |
dequeueXML()
Dequeue the last document in the queue |
void |
dynamicQueries(long ms)
|
void |
enqueueQueries(java.lang.String filename)
Enqueues queries from a file into the query listener |
void |
enqueueXML(java.lang.String strFileNameOrDir)
Enqueues an XML document or documents to the document queue |
void |
enqueueXML(XMLTree xmltree)
|
void |
fillXMLBuffer()
|
void |
generateQueries(long amount)
|
java.lang.String |
generateXML()
|
java.lang.String |
getCurrentQueries()
|
java.lang.String |
getCurrentXML()
|
EXfilter |
getEXfilter()
Returns an instance of the EXfilter |
java.lang.String |
getFilteringArray()
|
java.util.Vector |
getFilteringtime()
|
java.util.ArrayList |
getMatchedQueries()
|
java.util.ArrayList |
getMatchingElements(int id)
|
java.lang.String |
getQuery(int queryID)
|
int |
getQueryBufferSize()
|
double |
getQueryRate()
|
java.lang.String |
getStringOfMatchingElements(int id)
|
java.util.Vector |
getThroughput()
|
java.lang.String |
getThroughputArray()
|
int |
getXMLBufferSize()
|
boolean |
isBatchMode()
|
boolean |
isDynamicUpdateEnabled()
|
static void |
main(java.lang.String[] args)
|
void |
oneXMLdoc()
|
void |
pause()
|
java.util.Vector |
processDocuments()
Process all documents in the document buffer |
java.util.ArrayList |
processXMLTree(XMLTree xmltree)
Processes an XML Tree and returns the matched results. |
void |
processXMLTreeAndReport(XMLTree xmltree)
|
void |
run()
|
void |
runAgain()
|
void |
setBatchMode(boolean b)
Toggles the batch processing mode |
void |
setDynamicUpdateEnabled(boolean b)
|
void |
setQueryRate(double rate)
Sets the query rate |
void |
step()
|
void |
stepEnd(java.lang.String elementName)
|
void |
storeData(long time,
int noElements)
|
void |
update()
|
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 |
Field Detail |
public static java.lang.String m_yfilter_home
public int m_maxDepth
public double m_wildcard
public double m_dSlash
public double m_predProb
public char m_levelDist
public double m_nestedPath
public int m_maxLevel
public int m_maxRepeats
Constructor Detail |
public ICDEDemo(java.lang.String dtdAbsolutePath, Framework frame)
public ICDEDemo(java.lang.String dtdAbsolutePath)
Method Detail |
public EXfilter getEXfilter()
public void pause()
public void runAgain()
public void cycle()
public void step()
public void stepEnd(java.lang.String elementName)
public void generateQueries(long amount)
public void addQueryToBuffer(java.lang.String queryString)
queryString
- public void dequeueQuery()
public java.lang.String getQuery(int queryID)
public java.util.ArrayList getMatchedQueries()
public java.util.ArrayList getMatchingElements(int id) throws java.lang.Exception
java.lang.Exception
public java.lang.String getStringOfMatchingElements(int id) throws java.lang.Exception
java.lang.Exception
public void enqueueQueries(java.lang.String filename)
filename
- the file containing the queriespublic void dynamicQueries(long ms)
public boolean isBatchMode()
public void setBatchMode(boolean b)
b
- public boolean isDynamicUpdateEnabled()
public void setDynamicUpdateEnabled(boolean b)
public void setQueryRate(double rate)
rate
- public double getQueryRate()
public int getQueryBufferSize()
public int getXMLBufferSize()
public void changeQueryBufferSize(int size)
public void changeXMLBufferSize(int size)
public void addQueriesToFilter()
public void enqueueXML(java.lang.String strFileNameOrDir)
public void fillXMLBuffer()
public void changeDirectory(java.lang.String dir)
public void batchMode()
public java.util.Vector processDocuments()
public java.lang.String generateXML()
public void storeData(long time, int noElements)
public java.util.Vector getFilteringtime()
public java.util.Vector getThroughput()
public java.lang.String getFilteringArray()
public java.lang.String getThroughputArray()
public java.util.ArrayList processXMLTree(XMLTree xmltree)
xmltree
- contains parsed XML document
public void processXMLTreeAndReport(XMLTree xmltree)
public void oneXMLdoc()
public java.lang.String getCurrentXML()
public java.lang.String getCurrentQueries()
public void enqueueXML(XMLTree xmltree)
public XMLTree dequeueXML()
public void update()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |