Class HashFunction
Base class for hashing functions that can be referred to by name. Subclasses are expected to provide threadsafe implementations of the hash function on the range of bytes referenced in the provided Lucene.Net.Util.BytesRef.
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Codecs.Bloom
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class HashFunction
Methods
Hash(BytesRef)
Hashes the contents of the referenced bytes.
Declaration
public abstract int Hash(BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | bytes | The data to be hashed. |
Returns
Type | Description |
---|---|
int | The hash of the bytes referenced by bytes.offset and length bytes.Length. |