Class DistributedExecutorMassIndexer
- java.lang.Object
-
- org.infinispan.query.impl.massindex.DistributedExecutorMassIndexer
-
-
Constructor Summary
Constructors Constructor Description DistributedExecutorMassIndexer(org.infinispan.AdvancedCache<?,?> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRunning()CompletionStage<Void>remove()Removes all indexes from the cache.CompletionStage<Void>remove(Class<?>... entities)Removes all entities of a particular class from the index of the cache.CompletionStage<Void>run()Deletes all indexes for the cache and rebuilds them.CompletionStage<Void>run(Object... keys)Re-indexes values associated with the provided keys only.CompletionStage<Void>runLocal()same asIndexer.run()but will only re-index data from the local member.voidstart()
-
-
-
Method Detail
-
start
@ManagedOperation(description="Starts rebuilding the index", displayName="Rebuild index") public void start()
-
run
public CompletionStage<Void> run()
Description copied from interface:IndexerDeletes all indexes for the cache and rebuilds them. The indexing operation can take a long time to complete, depending on the size of the cache. You should not query caches until the indexing operation is complete because it affects query performance and results.
-
runLocal
public CompletionStage<Void> runLocal()
Description copied from interface:Indexersame asIndexer.run()but will only re-index data from the local member.
-
run
public CompletionStage<Void> run(Object... keys)
Description copied from interface:IndexerRe-indexes values associated with the provided keys only.
-
remove
public CompletionStage<Void> remove()
Description copied from interface:IndexerRemoves all indexes from the cache.
-
remove
public CompletionStage<Void> remove(Class<?>... entities)
Description copied from interface:IndexerRemoves all entities of a particular class from the index of the cache.
-
-