Fork me on GitHub
  • API

    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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    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 © 2022 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.