|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.cs.db.yfilter.querymodule.QueryIndexBasic
this class encodes a set of xpath queries as a query tree consisting of a set of hashtables with links to each other
Constructor Summary | |
QueryIndexBasic()
initialize the query tree with the start node which is an empty hashtable |
|
QueryIndexBasic(DTDStat stat)
|
|
QueryIndexBasic(java.util.Hashtable elements)
|
|
QueryIndexBasic(java.lang.String dtdFile)
|
Method Summary | |
int |
addQuery(Query query)
add a given xpath to the query tree this just adds ** and * into the hash table the same as any other symbol. |
void |
clearAcceptingStates_DocID()
|
void |
deleteQuery(Query query,
int queryId)
this function only removes (1) the identifiers of paths from the accepting states of the NFA without changing the structure of the NFA; and (2) the data structure containing query predicates from the list of queries. |
java.util.BitSet |
getDSlashChild()
|
int |
getNoActiveQueries()
|
java.util.HashMap |
getNode(int htId)
|
java.util.ArrayList |
getNodes()
|
int |
getNoDistinctPaths()
|
int |
getNoPaths()
|
int |
getNoPaths(int queryId)
|
int |
getNoPredicates()
|
int |
getNoQueries()
|
int |
getNoStates()
|
double |
getPathLength()
|
java.util.ArrayList |
getQueries()
|
int |
indexPath(int queryId,
int pathId,
java.lang.String[] steps)
|
int |
indexPath(int queryId,
Path path)
now match the new query against the existing data structure until we need to start adding new nodes. |
void |
printIndex()
render the query tree to stdout |
void |
printIndexToFile()
|
void |
printQueries()
|
void |
printQueriesToFile()
|
void |
removePath(int queryId,
Path path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public QueryIndexBasic()
public QueryIndexBasic(java.lang.String dtdFile)
public QueryIndexBasic(DTDStat stat)
public QueryIndexBasic(java.util.Hashtable elements)
Method Detail |
public java.util.ArrayList getQueries()
public int getNoQueries()
public int getNoActiveQueries()
public int getNoPaths()
public int getNoPaths(int queryId)
public int getNoPredicates()
public double getPathLength()
public java.util.ArrayList getNodes()
public java.util.HashMap getNode(int htId)
public java.util.BitSet getDSlashChild()
public int getNoStates()
public int getNoDistinctPaths()
public void clearAcceptingStates_DocID()
public int addQuery(Query query)
public void deleteQuery(Query query, int queryId)
public int indexPath(int queryId, Path path)
public int indexPath(int queryId, int pathId, java.lang.String[] steps)
public void removePath(int queryId, Path path)
public void printIndex()
public void printIndexToFile()
public void printQueries()
public void printQueriesToFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |