org.semanticweb.HermiT.blocking
Class BlockingSignatureCache

java.lang.Object
  extended by org.semanticweb.HermiT.blocking.BlockingSignatureCache
All Implemented Interfaces:
java.io.Serializable

public class BlockingSignatureCache
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  BlockingSignature[] m_buckets
           
protected  DirectBlockingChecker m_directBlockingChecker
           
protected  int m_numberOfElements
           
protected  int m_threshold
           
 
Constructor Summary
BlockingSignatureCache(DirectBlockingChecker directBlockingChecker)
           
 
Method Summary
 boolean addNode(Node node)
           
 boolean containsSignature(Node node)
           
protected static int getIndexFor(int hashCode, int tableLength)
           
 boolean isEmpty()
           
protected  void resize(int newCapacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_directBlockingChecker

protected final DirectBlockingChecker m_directBlockingChecker

m_buckets

protected BlockingSignature[] m_buckets

m_numberOfElements

protected int m_numberOfElements

m_threshold

protected int m_threshold
Constructor Detail

BlockingSignatureCache

public BlockingSignatureCache(DirectBlockingChecker directBlockingChecker)
Method Detail

isEmpty

public boolean isEmpty()

addNode

public boolean addNode(Node node)

resize

protected void resize(int newCapacity)

containsSignature

public boolean containsSignature(Node node)

getIndexFor

protected static int getIndexFor(int hashCode,
                                 int tableLength)