|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.index.Indexes
public class Indexes
Static factory class for creating Index
and Index.Manager
instances.
Method Summary | |
---|---|
static Index.Manager |
createQueuedIndexManager(String name,
Configuration config)
Creates an index where the index operations are placed on a queue and the actual work is done on a background thread. |
static Index.Manager |
createSimpleIndexManager(Configuration config)
Creates an index where the index operation work is done in the calling thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Index.Manager createQueuedIndexManager(@NotNull String name, @NotNull Configuration config)
Index.Result
may be
waited on to make sure that subsequent searchers will see the result of
that update, but you can timeout on that without losing the update.
name
- used to name the background thread.config
- that holds the Directory
and Analyzer
used
for indexing and searching.
Index.Manager
that has an index configured for queued
operations.public static Index.Manager createSimpleIndexManager(@NotNull Configuration config)
Index.Result
may be waited on but it will always be a
non-blocking operation as it will be complete already. There is no way to
timeout these operations.
The Index write policy is that flushes will only occur if a Searcher is requested, when the IndexWriter decides to according to its internal buffering policy, or when the index is closed.
config
- that holds the Directory
and Analyzer
used
for indexing and searching.
Index.Manager
that has an index configured for direct
operations.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |