Package org.infinispan.query
Interface Indexer
-
public interface Indexer
The indexer is used to interact directly with a cache's index.- Since:
- 11.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isRunning()
CompletionStage<Void>
remove()
Remove all the indexes from the cache.CompletionStage<Void>
remove(Class<?>... entities)
Remove all entities of particular class from the index of a cache.CompletionStage<Void>
run()
Deletes all the indexes from a cache and rebuilds them from the existing data.CompletionStage<Void>
run(Object... keys)
Re-indexes only the values associated with the provided keys.
-
-
-
Method Detail
-
run
CompletionStage<Void> run()
Deletes all the indexes from a cache and rebuilds them from the existing data. This operation can take a long time depending on the cache size, and searches during this process will be affected.
-
run
CompletionStage<Void> run(Object... keys)
Re-indexes only the values associated with the provided keys.
-
remove
CompletionStage<Void> remove()
Remove all the indexes from the cache.
-
remove
CompletionStage<Void> remove(Class<?>... entities)
Remove all entities of particular class from the index of a cache.
-
isRunning
boolean isRunning()
- Returns:
- true if the indexer process was started on this node and hasn't finished yet.
-
-