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.


Field Summary
 int m_acceptingStateId
           
 java.util.ArrayList m_accepts
           
 int m_matchedDocID
           
 
Constructor Summary
HashEntryBasic(int nextHtId)
           
HashEntryBasic(int nextHtId, int acceptingStateId)
           
 
Method Summary
 void addAccept(int queryId, int pathId)
           
 void clearState_DocID()
           
 boolean containsAccept()
           
 boolean documentSeen(int docID)
           
 int getAcceptingStateId()
           
 java.util.ArrayList getAccepts()
          this method gets the set of acceptStates
 int getAcceptsSize()
           
 int getNextHtId()
          this method gets the nextState which is an integer > 0.
 void print()
           
 void printToFile(java.io.PrintWriter out)
           
 void removeAccept(int queryId, int pathId)
           
 void setAcceptingStateId(int id)
           
 void setNextHtId(int next_htId)
           
 java.lang.String toString()
          this method converts the hash entry into a human readable string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_accepts

public java.util.ArrayList m_accepts

m_acceptingStateId

public int m_acceptingStateId

m_matchedDocID

public int m_matchedDocID
Constructor Detail

HashEntryBasic

public HashEntryBasic(int nextHtId)

HashEntryBasic

public HashEntryBasic(int nextHtId,
                      int acceptingStateId)
Method Detail

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)