Class DistributedExecutorMassIndexer
java.lang.Object
org.infinispan.query.impl.massindex.DistributedExecutorMassIndexer
- All Implemented Interfaces:
Indexer
@MBean(objectName="MassIndexer",
description="Component that rebuilds the Lucene index from the cached data")
public class DistributedExecutorMassIndexer
extends Object
implements Indexer
- Since:
- 7.1
- Author:
- gustavonalle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanremove()Removes all indexes from the cache.Removes all entities of a particular class from the index of the cache.run()Deletes all indexes for the cache and rebuilds them.Re-indexes values associated with the provided keys only.runLocal()same asIndexer.run()but will only re-index data from the local member.voidstart()
-
Constructor Details
-
DistributedExecutorMassIndexer
public DistributedExecutorMassIndexer(org.infinispan.AdvancedCache<?, ?> cache)
-
-
Method Details
-
start
@ManagedOperation(description="Starts rebuilding the index", displayName="Rebuild index") public void start() -
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
Description copied from interface:Indexersame asIndexer.run()but will only re-index data from the local member. -
run
Description copied from interface:IndexerRe-indexes values associated with the provided keys only. -
remove
Description copied from interface:IndexerRemoves all indexes from the cache. -
remove
Description copied from interface:IndexerRemoves all entities of a particular class from the index of the cache. -
isRunning
public boolean isRunning()
-