Class DefaultIndex

java.lang.Object
com.atlassian.jira.index.DefaultIndex
All Implemented Interfaces:
Index, Closeable, Closeable, AutoCloseable

@ThreadSafe public class DefaultIndex extends Object
Uses a DefaultIndex.Engine to perform actual writes to an index.
  • Method Details

    • perform

      @Nonnull public Index.Result perform(@Nonnull Index.Operation operation)
      Description copied from interface: Index
      Perform an Index.Operation on the index.
      Specified by:
      perform in interface Index
      Parameters:
      operation - the work to do.
      Returns:
      a Result object
    • close

      public void close()
      Description copied from interface: Closeable
      Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface Closeable