Package org.infinispan.query
Interface Indexer
public interface Indexer
Interacts directly with cache indexes.
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
remove()
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 asrun()
but will only re-index data from the local member.
-
Method Details
-
run
CompletionStage<Void> run()Deletes 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
CompletionStage<Void> runLocal()same asrun()
but will only re-index data from the local member. -
run
Re-indexes values associated with the provided keys only. -
remove
CompletionStage<Void> remove()Removes all indexes from the cache. -
remove
Removes all entities of a particular class from the index of the cache. -
isRunning
boolean isRunning()- Returns:
- true if the indexer process was started on this node and has not finished yet.
-