Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class CollisionMap

    HashMap to store colliding labels. See CompactLabelToOrdinal for details.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    CollisionMap
    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.Facet.Taxonomy.WriterCache
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class CollisionMap

    Properties

    | Improve this Doc View Source

    Capacity

    How many slots are allocated.

    Declaration
    public virtual int Capacity { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Count

    How many mappings.

    Declaration
    public virtual int Count { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    AddLabel(FacetLabel, Int32, Int32)

    Add another mapping.

    Declaration
    public virtual int AddLabel(FacetLabel label, int hash, int cid)
    Parameters
    Type Name Description
    FacetLabel label
    System.Int32 hash
    System.Int32 cid
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    AddLabelOffset(Int32, Int32, Int32)

    This method does not check if the same value is already in the map because we pass in an char-array offset, so so we now that we're in resize-mode here.

    Declaration
    public virtual void AddLabelOffset(int hash, int offset, int cid)
    Parameters
    Type Name Description
    System.Int32 hash
    System.Int32 offset
    System.Int32 cid
    | Improve this Doc View Source

    Get(FacetLabel, Int32)

    Return the mapping, or INVALID_ORDINAL if the label isn't recognized.

    Declaration
    public virtual int Get(FacetLabel label, int hash)
    Parameters
    Type Name Description
    FacetLabel label
    System.Int32 hash
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.