|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--edu.berkeley.cs.db.yfilter.filter.EXfilter | +--edu.berkeley.cs.db.yfilter.filter.EXfilterBasic
Field Summary | |
protected boolean |
DEMO_CODE
|
protected BottomStreams |
m_bottomStreams
|
protected ICDEDemo |
m_demo
|
protected int |
m_docSN
|
protected java.util.ArrayList |
m_matchedQueries
|
protected double[] |
m_matchRatio
|
protected NFAExecution |
m_nfa
|
protected int |
m_noElements
|
protected java.util.BitSet |
m_prevBitSet
|
protected QueryIndexBasic |
m_queryIndex
|
protected java.util.Stack |
m_runStack
|
Fields inherited from class edu.berkeley.cs.db.yfilter.filter.EXfilter |
DEBUG_QUERY_PARSING, DEBUG_XML_PARSING, m_contextPath, m_eventIndex, m_events, m_out, m_trace, m_tree |
Constructor Summary | |
EXfilterBasic()
|
|
EXfilterBasic(DTDStat stat)
|
|
EXfilterBasic(DTDStat stat,
ICDEDemo demo)
|
Method Summary | |
int |
addQuery(Query query)
|
void |
allocateStreams()
if new queries have been added to the system, allocate more pathtuple streams before executing a new document |
void |
characters(char[] ch,
int start,
int count)
DocumentHandler :: characters: |
void |
clear()
clear after each doc is processed |
void |
deleteQuery(Query query,
int queryId)
|
void |
endDocument()
DocumnetHandler :: end document : complete post processing and clear the execution and parsing stacks so that we go back to the start state. |
void |
endElement()
DocumentHandler :: end element: now evaluating paths and finding accepts is a job here after attribute checking when the element is read and data value checking when the data is read; need to pop the current element context and drop back to the previous one |
void |
endElement(java.lang.String uri,
java.lang.String local,
java.lang.String eleName)
DocumentHandler :: end element: with preparsing |
java.util.ArrayList |
getMatchedQueries()
get the matched queries; fill in m_matchedQuries |
java.util.ArrayList |
getMatchingElements(int queryId)
get the elements that have matched a particular query. |
java.util.ArrayList |
getNewlyMatchedQueries()
get newly matched queries |
int |
getNoActiveQueries()
|
int |
getNoDistinctPaths()
|
int |
getNoDistinctQueries()
|
int |
getNoElements()
|
int |
getNoMatchedQueries()
|
int |
getNoPredicates()
|
int |
getNoQueries()
|
int |
getNoStates()
|
double |
getPathLength()
|
QueryIndexBasic |
getQueryIndex()
|
double |
getSelectivity()
|
void |
preAllocate()
pre-allocate pathtuple streams after query bulkloading and before processing any documents |
void |
printQueryIndex()
|
void |
printQueryIndexToFile()
|
void |
printQueryResults(java.io.PrintStream out)
Prints all the query results to a binary stream |
void |
printQueryResults(java.io.PrintWriter out)
Prints all the query results to an ASCII stream |
void |
printRunStack()
|
void |
startDocument()
DocumnetHandler :: start document : initialize the execution stack so that we are in the start state. |
void |
startElement()
DocumentHandler :: start element: here we need to check all of our current states to see which ones match this element and push the resulting set of states onto the execution stack. |
void |
startElement(java.lang.String uri,
java.lang.String local,
java.lang.String elementName,
org.xml.sax.Attributes attrs)
DocumentHandler :: start element: without pre-parsing |
java.lang.String |
stringOfMatchingElements(int queryId)
Returns a string representation of the elements that have matched a particular query |
Methods inherited from class edu.berkeley.cs.db.yfilter.filter.EXfilter |
main, setEventSequence, setXMLTree, startParsing, startParsing |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected QueryIndexBasic m_queryIndex
protected java.util.Stack m_runStack
protected NFAExecution m_nfa
protected BottomStreams m_bottomStreams
protected int m_noElements
protected int m_docSN
protected java.util.ArrayList m_matchedQueries
protected double[] m_matchRatio
protected java.util.BitSet m_prevBitSet
protected ICDEDemo m_demo
protected boolean DEMO_CODE
Constructor Detail |
public EXfilterBasic()
public EXfilterBasic(DTDStat stat)
public EXfilterBasic(DTDStat stat, ICDEDemo demo)
Method Detail |
public void clear()
clear
in class EXfilter
public void preAllocate()
public void allocateStreams()
public int addQuery(Query query)
addQuery
in class EXfilter
public void deleteQuery(Query query, int queryId)
deleteQuery
in class EXfilter
public QueryIndexBasic getQueryIndex()
public void printQueryIndex()
public void printQueryIndexToFile()
public int getNoElements()
public int getNoQueries()
public int getNoDistinctQueries()
public int getNoActiveQueries()
public int getNoDistinctPaths()
public double getPathLength()
public int getNoPredicates()
public int getNoStates()
public double getSelectivity()
public java.util.ArrayList getNewlyMatchedQueries()
public int getNoMatchedQueries()
public java.util.ArrayList getMatchedQueries()
public java.util.ArrayList getMatchingElements(int queryId) throws java.lang.Exception
java.lang.Exception
public java.lang.String stringOfMatchingElements(int queryId) throws java.lang.Exception
queryId
-
java.lang.Exception
public void printQueryResults(java.io.PrintWriter out)
out
- the streampublic void printQueryResults(java.io.PrintStream out)
out
- the streampublic void startDocument()
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class EXfilter
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class EXfilter
public void startElement()
startElement
in class EXfilter
public void endElement()
endElement
in class EXfilter
public void startElement(java.lang.String uri, java.lang.String local, java.lang.String elementName, org.xml.sax.Attributes attrs)
startElement
in interface org.xml.sax.ContentHandler
startElement
in class EXfilter
public void characters(char[] ch, int start, int count)
characters
in interface org.xml.sax.ContentHandler
characters
in class EXfilter
public void endElement(java.lang.String uri, java.lang.String local, java.lang.String eleName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class EXfilter
public void printRunStack()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |