Interface MassIndexer


  • public interface MassIndexer
    Component to rebuild the indexes from the existing data. This process starts by removing all existing indexes, and then a distributed task is executed to rebuild the indexes. This task can take a long time to run, depending on data size, used stores, indexing complexity.

    While reindexing is being performed queries should not be executed as they will very likely miss many or all results.

    Author:
    Sanne Grinovero <sanne@hibernate.org> (C) 2012 Red Hat Inc.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isRunning()  
      java.util.concurrent.CompletableFuture<java.lang.Void> purge()
      Deletes all the indexes and skip the reindexing.
      java.util.concurrent.CompletableFuture<java.lang.Void> reindex​(java.lang.Object... keys)  
      void start()  
      java.util.concurrent.CompletableFuture<java.lang.Void> startAsync()  
    • Method Detail

      • start

        void start()
      • purge

        java.util.concurrent.CompletableFuture<java.lang.Void> purge()
        Deletes all the indexes and skip the reindexing.
      • startAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> startAsync()
        Returns:
        CompletableFuture
      • reindex

        java.util.concurrent.CompletableFuture<java.lang.Void> reindex​(java.lang.Object... keys)
      • isRunning

        boolean isRunning()
        Returns:
        true if the MassIndexer process was started on this node and hasn't finished yet.