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
    object
    CollisionMap
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Facet.Taxonomy.WriterCache
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class CollisionMap

    Properties

    Capacity

    How many slots are allocated.

    Declaration
    public virtual int Capacity { get; }
    Property Value
    Type Description
    int

    Count

    How many mappings.

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

    Methods

    AddLabel(FacetLabel, int, int)

    Add another mapping.

    Declaration
    public virtual int AddLabel(FacetLabel label, int hash, int cid)
    Parameters
    Type Name Description
    FacetLabel label
    int hash
    int cid
    Returns
    Type Description
    int

    AddLabelOffset(int, int, int)

    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
    int hash
    int offset
    int cid

    Get(FacetLabel, int)

    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
    int hash
    Returns
    Type Description
    int
    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.