Show / Hide Table of Contents

    Class Cl2oTaxonomyWriterCache

    ITaxonomyWriterCache using CompactLabelToOrdinal. Although called cache, it maintains in memory all the mappings from category to ordinal, relying on that CompactLabelToOrdinal is an efficient mapping for this purpose.

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

    Constructors

    | Improve this Doc View Source

    Cl2oTaxonomyWriterCache(Int32, Single, Int32)

    Sole constructor.

    Declaration
    public Cl2oTaxonomyWriterCache(int initialCapcity, float loadFactor, int numHashArrays)
    Parameters
    Type Name Description
    System.Int32 initialCapcity
    System.Single loadFactor
    System.Int32 numHashArrays

    Properties

    | Improve this Doc View Source

    IsFull

    Declaration
    public virtual bool IsFull { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Clear()

    Declaration
    public virtual void Clear()
    | Improve this Doc View Source

    Dispose()

    Declaration
    public virtual void Dispose()
    | Improve this Doc View Source

    Get(FacetLabel)

    Declaration
    public virtual int Get(FacetLabel categoryPath)
    Parameters
    Type Name Description
    FacetLabel categoryPath
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetMemoryUsage()

    Returns the number of bytes in memory used by this object.

    Declaration
    public virtual int GetMemoryUsage()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Put(FacetLabel, Int32)

    Declaration
    public virtual bool Put(FacetLabel categoryPath, int ordinal)
    Parameters
    Type Name Description
    FacetLabel categoryPath
    System.Int32 ordinal
    Returns
    Type Description
    System.Boolean

    Implements

    ITaxonomyWriterCache
    IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)