Package com.atlassian.confluence.search
Interface ReIndexSupport<T>
- Type Parameters:
T- the type of entity being reindexed
- All Known Implementing Classes:
AttachmentOnlyReIndexSupport,ContentOnlyReIndexSupport,ReIndexOption,UserOnlyReIndexSupport
public interface ReIndexSupport<T>
Interface for reindexing options in Confluence.
Defines the contract for different types of reindexing operations.
- Since:
- 10.1
-
Method Summary
Modifier and TypeMethodDescriptionGet the class filter predicate for this reindex option.Get 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.default List<HibernateHandle> getHandles(SearchableDao dao) Get handles for reindexing.default List<HibernateHandle> getHandles(SearchableDao dao, Optional<String> spaceKey) Get handles for reindexing within a specific space.getThreadCount(JvmSystemResources jvmRuntime) Get the number of threads to use for reindexing with specific JVM resources.
-
Method Details
-
getDeleteQuery
SearchQuery getDeleteQuery()Get the search query for deleting documents during reindexing.- Returns:
- the delete query
-
getDeleteQuery
Get the search query for deleting documents during reindexing within a specific space.- Parameters:
spaceKey- the space key to limit the deletion to- Returns:
- the delete query
-
getThreadCount
Get the number of threads to use for reindexing with specific JVM resources.- Parameters:
jvmRuntime- the JVM system resources- Returns:
- the thread count
-
getClassFilter
Get the class filter predicate for this reindex option.- Returns:
- predicate to filter classes
-
getEntityClass
Get the entity class for this reindex option. Only required if using default implementations of getClassFilter() or getHandles().- Returns:
- the entity class
-
getHandles
Get handles for reindexing.- Parameters:
dao- the searchable DAO- Returns:
- list of hibernate handles
-
getHandles
Get handles for reindexing within a specific space.- Parameters:
dao- the searchable DAOspaceKey- the space key to limit to- Returns:
- list of hibernate handles
-