Show / Hide Table of Contents

    Interface IndexWriter.IEvent

    Interface for internal atomic events. See Lucene.Net.Index.DocumentsWriter for details. Events are executed concurrently and no order is guaranteed. Each event should only rely on the serializeability within it's process method. All actions that must happen before or after a certain action must be encoded inside the Process(IndexWriter, Boolean, Boolean) method.

    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.dll
    Syntax
    public interface IEvent

    Methods

    | Improve this Doc View Source

    Process(IndexWriter, Boolean, Boolean)

    Processes the event. this method is called by the IndexWriter passed as the first argument.

    Declaration
    void Process(IndexWriter writer, bool triggerMerge, bool clearBuffers)
    Parameters
    Type Name Description
    IndexWriter writer

    the IndexWriter that executes the event.

    System.Boolean triggerMerge

    false iff this event should not trigger any segment merges

    System.Boolean clearBuffers

    true iff this event should clear all buffers associated with the event.

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