Show / Hide Table of Contents

    Interface SegmentReader.ICoreDisposedListener

    Called when the shared core for this SegmentReader is disposed.

    This listener is called only once all SegmentReaders sharing the same core are disposed. At this point it is safe for apps to evict this reader from any caches keyed on CoreCacheKey. This is the same interface that IFieldCache uses, internally, to evict entries.

    NOTE: This was CoreClosedListener in Lucene.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public interface ICoreDisposedListener

    Methods

    | Improve this Doc View Source

    OnDispose(Object)

    Invoked when the shared core of the original SegmentReader has disposed.

    Declaration
    void OnDispose(object ownerCoreCacheKey)
    Parameters
    Type Name Description
    System.Object ownerCoreCacheKey
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)