Class ReindexService

java.lang.Object
org.fcrepo.persistence.ocfl.impl.ReindexService

@Component public class ReindexService extends Object
Service that does the reindexing for one OCFL object.
Author:
whikloj
  • Constructor Details

  • Method Details

    • indexOcflObject

      public void indexOcflObject(org.fcrepo.kernel.api.Transaction tx, String ocflId)
    • cleanupSession

      public void cleanupSession(String transactionId)
      Remove persistent sessions for a transaction to avoid memory leaks.
      Parameters:
      transactionId - the transaction id.
    • setMembershipPageSize

      public void setMembershipPageSize(int pageSize)
      Set the membership page size.
      Parameters:
      pageSize - the new page size.
    • reset

      public void reset()
      Reset all the indexes.
    • indexMembership

      public void indexMembership(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 one
      Parameters:
      transaction - the transaction id.
    • rollbackMembership

      public void rollbackMembership(@NotNull @NotNull org.fcrepo.kernel.api.Transaction tx)
      Rollback changes in the transaction.
      Parameters:
      tx - the transaction