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 BytesRef.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    HashFunction
    MurmurHash2
    Namespace: Lucene.Net.Codecs.Bloom
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public abstract class HashFunction : object

    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
    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 © 2020 Licensed to the Apache Software Foundation (ASF)