edu.berkeley.cs.db.yfilter.querymodule
Class HashEntryBasic
java.lang.Object
|
+--edu.berkeley.cs.db.yfilter.querymodule.HashEntryBasic
- public class HashEntryBasic
- extends java.lang.Object
this class is the object we store in the hash table
each entry can point to multiple accept states as
well as the next state.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_accepts
public java.util.ArrayList m_accepts
m_acceptingStateId
public int m_acceptingStateId
m_matchedDocID
public int m_matchedDocID
HashEntryBasic
public HashEntryBasic(int nextHtId)
HashEntryBasic
public HashEntryBasic(int nextHtId,
int acceptingStateId)
getNextHtId
public int getNextHtId()
- this method gets the nextState which is
an integer > 0.
setNextHtId
public void setNextHtId(int next_htId)
getAcceptingStateId
public int getAcceptingStateId()
setAcceptingStateId
public void setAcceptingStateId(int id)
addAccept
public void addAccept(int queryId,
int pathId)
removeAccept
public void removeAccept(int queryId,
int pathId)
getAccepts
public java.util.ArrayList getAccepts()
- this method gets the set of acceptStates
getAcceptsSize
public int getAcceptsSize()
containsAccept
public boolean containsAccept()
documentSeen
public boolean documentSeen(int docID)
clearState_DocID
public void clearState_DocID()
toString
public java.lang.String toString()
- this method converts the hash entry
into a human readable string.
- Overrides:
toString
in class java.lang.Object
print
public void print()
printToFile
public void printToFile(java.io.PrintWriter out)