Package org.infinispan.query
Interface Indexer
-
public interface Indexer
Interacts directly with cache indexes.- Since:
- 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRunning()
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 asrun()
but will only re-index data from the local member.
-
-
-
Method Detail
-
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
CompletionStage<Void> run(Object... keys)
Re-indexes values associated with the provided keys only.
-
remove
CompletionStage<Void> remove()
Removes all indexes from the cache.
-
remove
CompletionStage<Void> remove(Class<?>... entities)
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.
-
-