Class ModuloHashTable<T>
- java.lang.Object
-
- org.hibernate.search.util.common.data.impl.HashTable<T>
-
- org.hibernate.search.util.common.data.impl.ModuloHashTable<T>
-
-
Constructor Summary
Constructors Constructor Description ModuloHashTable(HashFunction hashFunction, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeIndex(CharSequence key)Hashes akeyand computes an array index based on that hash.-
Methods inherited from class org.hibernate.search.util.common.data.impl.HashTable
get, get, iterator, set, size
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ModuloHashTable
public ModuloHashTable(HashFunction hashFunction, int size)
-
-
Method Detail
-
computeIndex
public int computeIndex(CharSequence key)
Description copied from class:HashTableHashes akeyand computes an array index based on that hash.The maximum index is defined by constructor parameters passed to the hash function.
- Specified by:
computeIndexin classHashTable<T>- Parameters:
key- A key to hash in order to compute an index.- Returns:
- The index to use for the given
keyin a hash table of sizesize.
-
-