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.
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Codecs.Bloom
Assembly: Lucene.Net.Codecs.dll
Syntax
public abstract class HashFunction
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 |
---|---|---|
Lucene.Net.Util.BytesRef | bytes | The data to be hashed. |
Returns
Type | Description |
---|---|
System.Int32 | The hash of the bytes referenced by bytes.offset and length bytes.Length. |