Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    HashFunction
    MurmurHash2
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.