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 Bytes
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Namespace: Lucene.Net.Codecs.Bloom
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class HashFunction : object
Methods
| Improve this Doc View SourceHash(BytesRef)
Hashes the contents of the referenced bytes.
Declaration
public abstract int Hash(BytesRef bytes)
Parameters
Type | Name | Description |
---|---|---|
Bytes |
bytes | The data to be hashed. |
Returns
Type | Description |
---|---|
System. |
The hash of the bytes referenced by bytes.offset and length bytes.Length. |