Show / Hide Table of Contents

    Class CollisionMap

    HashMap to store colliding labels. See CompactLabelToOrdinal for details.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    CollisionMap
    Namespace: Lucene.Net.Facet.Taxonomy.WriterCache
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class CollisionMap : object

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