Class IndexesRebuildTask
- java.lang.Object
-
- org.apache.ignite.internal.managers.indexing.IndexesRebuildTask
-
public class IndexesRebuildTask extends Object
Task that rebuilds indexes.
-
-
Constructor Summary
Constructors Constructor Description IndexesRebuildTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable IgniteInternalFuture<?>rebuild(GridCacheContext<?,?> cctx, boolean force, IndexRebuildCancelToken cancelTok)Start to rebuild.protected voidstartRebuild(GridCacheContext cctx, GridFutureAdapter<Void> fut, SchemaIndexCacheVisitorClosure clo, IndexRebuildCancelToken cancelTok)Actual start rebuilding.voidstopRebuild(GridCacheContextInfo cacheInfo, IgniteLogger log)Stop rebuilding indexes.
-
-
-
Method Detail
-
rebuild
@Nullable public @Nullable IgniteInternalFuture<?> rebuild(GridCacheContext<?,?> cctx, boolean force, IndexRebuildCancelToken cancelTok)
Start to rebuild.- Parameters:
cctx- Cache context.force- Force rebuild indexes.- Returns:
- A future of rebuilding cache indexes.
-
startRebuild
protected void startRebuild(GridCacheContext cctx, GridFutureAdapter<Void> fut, SchemaIndexCacheVisitorClosure clo, IndexRebuildCancelToken cancelTok)
Actual start rebuilding. Use this method for test purposes only.- Parameters:
cctx- Cache context.fut- Future for rebuild indexes.clo- Closure.cancelTok- Cancellation token.
-
stopRebuild
public void stopRebuild(GridCacheContextInfo cacheInfo, IgniteLogger log)
Stop rebuilding indexes.- Parameters:
cacheInfo- Cache context info.log- Logger.
-
-