gov.nist.nlpir.irf.index.braf
Class HashBlockEntry

java.lang.Object
  |
  +--gov.nist.nlpir.irf.index.braf.HashBlockEntry

class HashBlockEntry
extends java.lang.Object

HashBlock entry. It associates a key to a value, keeping also track of the hashcode so that it doesn't have to be recomputed each time. The projection between the hashcode space and the main array of the HashBlock may result result in conflicts: different keys may have the same hashcode, and hashcode may project in the same place in the main array. That's why there is a next pointer in the entry, it allows to have collision lists, ans the hashcode is there because in one given collision list, several hashcodes may be present.


Field Summary
(package private)  int hash
          Key hashcode.
(package private)  java.lang.Object key
          Key the value is maped to.
(package private)  HashBlockEntry next
          Links the next entry in the collision list.
(package private)  java.lang.Object value
          Can only be a ProxyFeatureList or its Oid if it hasn't been materialized yet.
 
Constructor Summary
(package private) HashBlockEntry()
           
 
Method Summary
protected  java.lang.Object clone()
          Overrides the Object method, used by HashBlock.clone().
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

hash

int hash
Key hashcode. Thus, it doesn't have to be recalculated each time.

key

java.lang.Object key
Key the value is maped to.

value

java.lang.Object value
Can only be a ProxyFeatureList or its Oid if it hasn't been materialized yet.

next

HashBlockEntry next
Links the next entry in the collision list.
Constructor Detail

HashBlockEntry

HashBlockEntry()
Method Detail

clone

protected java.lang.Object clone()
Overrides the Object method, used by HashBlock.clone().
Overrides:
clone in class java.lang.Object