@ThreadSafe public class

DefaultIndexEngine

extends Object
implements Closeable
java.lang.Object
   ↳ com.atlassian.jira.index.DefaultIndexEngine

Class Overview

Thread-safe container that manages our current IndexSearcher and Writer.

Gets passed searcher and writer factories that create new instances of these when required.

Summary

Nested Classes
enum DefaultIndexEngine.FlushPolicy How to perform an actual write to the writer. 
[Expand]
Inherited Fields
From interface com.atlassian.jira.util.Closeable
Public Methods
void clean()
void close()
Closes this stream and releases any system resources associated with it.
@Nonnull IndexSearcher getSearcher()
void write(Index.Operation operation)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.Closeable
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Methods

public void clean ()

public void close ()

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

@Nonnull public IndexSearcher getSearcher ()

leak a IndexSearcher. Must get closed after usage.

public void write (Index.Operation operation)

Throws
IOException