Package org.molgenis.data.index
Interface IndexActionRegisterService
-
- All Known Implementing Classes:
IndexActionRegisterServiceImpl
public interface IndexActionRegisterServiceRegisters changes made to an indexed repository that need to be fixed by indexing the relevant data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExcludedEntity(String entityFullName)Excludes an entity from being indexed.booleanforgetIndexActions(String transactionId)Removes all index actions registered for a transaction.voidregister(EntityType entityType, Object entityId)Log and create locks for an add/update/delete operation on a RepositoryvoidstoreIndexActions(String transactionId)Stores the index actions in the repository.
-
-
-
Method Detail
-
addExcludedEntity
void addExcludedEntity(String entityFullName)
Excludes an entity from being indexed.- Parameters:
entityFullName- fully qualified name of the entity to exclude
-
register
void register(EntityType entityType, Object entityId)
Log and create locks for an add/update/delete operation on a Repository- Parameters:
entityId- the ID of the entity, may be null to indicate change to entire repository
-
storeIndexActions
void storeIndexActions(String transactionId)
Stores the index actions in the repository. Creates a ReindexActionJob to group them by. storeIndexActions uses a set as optimization to remove the double index actions before the index actions are stored in database.- Parameters:
transactionId- ID for the transaction the index actions were registered under
-
forgetIndexActions
boolean forgetIndexActions(String transactionId)
Removes all index actions registered for a transaction.- Parameters:
transactionId- ID for the transaction the index actions were registered under- Returns:
- boolean indicating if any work was present
-
-