org.semanticweb.HermiT.blocking
Class BlockingCache

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

 class BlockingCache
extends java.lang.Object
implements java.io.Serializable


Nested Class Summary
static class BlockingCache.CacheEntry
           
 
Field Summary
protected  BlockingCache.CacheEntry[] m_buckets
           
protected  DirectBlockingChecker m_directBlockingChecker
           
protected  BlockingCache.CacheEntry m_emptyEntries
           
protected  int m_numberOfElements
           
protected  int m_threshold
           
private static long serialVersionUID
           
 
Constructor Summary
BlockingCache(DirectBlockingChecker directBlockingChecker)
           
 
Method Summary
 BlockingCache.CacheEntry addNode(Node node)
           
 void clear()
           
 Node getBlocker(Node node)
           
protected static int getIndexFor(int hashCode, int tableLength)
           
 boolean isEmpty()
           
 void removeCacheEntry(BlockingCache.CacheEntry removeEntry)
           
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_directBlockingChecker

protected final DirectBlockingChecker m_directBlockingChecker

m_buckets

protected BlockingCache.CacheEntry[] m_buckets

m_numberOfElements

protected int m_numberOfElements

m_threshold

protected int m_threshold

m_emptyEntries

protected BlockingCache.CacheEntry m_emptyEntries
Constructor Detail

BlockingCache

public BlockingCache(DirectBlockingChecker directBlockingChecker)
Method Detail

isEmpty

public boolean isEmpty()

clear

public void clear()

removeCacheEntry

public void removeCacheEntry(BlockingCache.CacheEntry removeEntry)

addNode

public BlockingCache.CacheEntry addNode(Node node)

resize

protected void resize(int newCapacity)

getBlocker

public Node getBlocker(Node node)

getIndexFor

protected static int getIndexFor(int hashCode,
                                 int tableLength)