Show / Hide Table of Contents

    Class LruTaxonomyWriterCache

    LRU ITaxonomyWriterCache - good choice for huge taxonomies.

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

    Constructors

    | Improve this Doc View Source

    LruTaxonomyWriterCache(Int32)

    Creates this with LRU_HASHED method.

    Declaration
    public LruTaxonomyWriterCache(int cacheSize)
    Parameters
    Type Name Description
    System.Int32 cacheSize
    | Improve this Doc View Source

    LruTaxonomyWriterCache(Int32, LruTaxonomyWriterCache.LRUType)

    Creates this with the specified method.

    Declaration
    public LruTaxonomyWriterCache(int cacheSize, LruTaxonomyWriterCache.LRUType lruType)
    Parameters
    Type Name Description
    System.Int32 cacheSize
    LruTaxonomyWriterCache.LRUType lruType

    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

    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)