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
    System.Object
    HashFunction
    MurmurHash2
    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 Source

    Hash(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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.