use of org.apache.ignite.internal.managers.indexing.IndexesRebuildTask in project ignite by apache.
the class GridCommandHandlerIndexForceRebuildTest method schemaIndexCacheFuture.
/**
* Getting internal index rebuild future for cache.
*
* @param n Node.
* @param cacheId Cache id.
* @return Internal index rebuild future.
*/
@Nullable
private SchemaIndexCacheFuture schemaIndexCacheFuture(IgniteEx n, int cacheId) {
IndexesRebuildTask idxRebuild = n.context().indexProcessor().idxRebuild();
Map<Integer, SchemaIndexCacheFuture> idxRebuildFuts = getFieldValue(idxRebuild, "idxRebuildFuts");
return idxRebuildFuts.get(cacheId);
}
use of org.apache.ignite.internal.managers.indexing.IndexesRebuildTask in project ignite by apache.
the class StopRebuildIndexTest method internalIndexRebuildFuture.
/**
* Getting internal rebuild index future for the cache.
*
* @param n Node.
* @param cacheId Cache id.
* @return Rebuild index future.
*/
@Nullable
private SchemaIndexCacheFuture internalIndexRebuildFuture(IgniteEx n, int cacheId) {
IndexesRebuildTask idxRebuild = n.context().indexProcessor().idxRebuild();
Object idxRebuildFuts = getFieldValueHierarchy(idxRebuild, "idxRebuildFuts");
return ((Map<Integer, SchemaIndexCacheFuture>) idxRebuildFuts).get(cacheId);
}
Aggregations