Package org.fcrepo.persistence.ocfl.impl
Class ReindexService
java.lang.Object
org.fcrepo.persistence.ocfl.impl.ReindexService
Service that does the reindexing for one OCFL object.
- Author:
- whikloj
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupSession(String transactionId) Remove persistent sessions for a transaction to avoid memory leaks.voidindexMembership(org.fcrepo.kernel.api.Transaction transaction) Index all membership properties by querying for Direct and Indirect containers, and then trying population of the membership index for each onevoidindexOcflObject(org.fcrepo.kernel.api.Transaction tx, String ocflId) voidreset()Reset all the indexes.voidrollbackMembership(@NotNull org.fcrepo.kernel.api.Transaction tx) Rollback changes in the transaction.voidsetMembershipPageSize(int pageSize) Set the membership page size.
-
Constructor Details
-
ReindexService
public ReindexService()
-
-
Method Details
-
indexOcflObject
-
cleanupSession
Remove persistent sessions for a transaction to avoid memory leaks.- Parameters:
transactionId- the transaction id.
-
setMembershipPageSize
Set the membership page size.- Parameters:
pageSize- the new page size.
-
reset
Reset all the indexes. -
indexMembership
Index all membership properties by querying for Direct and Indirect containers, and then trying population of the membership index for each one- Parameters:
transaction- the transaction id.
-
rollbackMembership
Rollback changes in the transaction.- Parameters:
tx- the transaction
-