@ThreadSafe public class

DefaultIndex

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

Class Overview

Uses a DefaultIndex.Engine to perform actual writes to an index.

Summary

Nested Classes
class DefaultIndex.Failure Indicate that an operation failed. 
class DefaultIndex.Success Indicate that an operation completed successfully. 
[Expand]
Inherited Fields
From interface com.atlassian.jira.util.Closeable
Public Methods
void close()
Closes this stream and releases any system resources associated with it.
@Nonnull Index.Result perform(Index.Operation operation)
Perform an Index.Operation on the index.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.index.Index
From interface com.atlassian.jira.util.Closeable
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Methods

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 Index.Result perform (Index.Operation operation)

Perform an Index.Operation on the index.

Parameters
operation the work to do.
Returns
  • a Result object