Package com.atlassian.confluence.search
Class AttachmentOnlyReIndexSupport
java.lang.Object
com.atlassian.confluence.search.AttachmentOnlyReIndexSupport
- All Implemented Interfaces:
ReIndexSupport<Attachment>
Reindex support for attachments only.
- Since:
- 10.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the search query for deleting documents during reindexing.getDeleteQuery(Optional<String> spaceKey) Get the search query for deleting documents during reindexing within a specific space.Get the entity class for this reindex option.getThreadCount(JvmSystemResources jvmRuntime) Determine how many threads should be used for attachment reindexing.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.ReIndexSupport
getClassFilter, getHandles, getHandles
-
Constructor Details
-
AttachmentOnlyReIndexSupport
public AttachmentOnlyReIndexSupport()
-
-
Method Details
-
getEntityClass
Description copied from interface:ReIndexSupportGet the entity class for this reindex option. Only required if using default implementations of getClassFilter() or getHandles().- Specified by:
getEntityClassin interfaceReIndexSupport<Attachment>- Returns:
- the entity class
-
getDeleteQuery
Description copied from interface:ReIndexSupportGet the search query for deleting documents during reindexing.- Specified by:
getDeleteQueryin interfaceReIndexSupport<Attachment>- Returns:
- the delete query
-
getDeleteQuery
Description copied from interface:ReIndexSupportGet the search query for deleting documents during reindexing within a specific space.- Specified by:
getDeleteQueryin interfaceReIndexSupport<Attachment>- Parameters:
spaceKey- the space key to limit the deletion to- Returns:
- the delete query
-
getThreadCount
Determine how many threads should be used for attachment reindexing. Unlike CONTENT_ONLY, where the number of threads is determined solely by the number of CPUs, attachment reindexing can be memory intensive. To reduce the risk of memory starvation, we therefore also take the amount of available free memory into account. We require that a certain amount of free memory is available per thread. This per-thread amount is very much an educated guess at this point.- Specified by:
getThreadCountin interfaceReIndexSupport<Attachment>- Parameters:
jvmRuntime- the JVM system resources- Returns:
- the thread count
-
toString
-