@SuppressWarnings("unchecked") public IgniteInternalFuture<?> rebuildAllIndexes(){
  if (!busyLock.enterBusy())   throw new IllegalStateException("Failed to get space size (grid is stopping).");
  try {
    GridCompoundFuture<?,?> fut=new GridCompoundFuture<Object,Object>();
    for (    Map.Entry<TypeId,TypeDescriptor> e : types.entrySet())     fut.add((IgniteInternalFuture)rebuildIndexes(e.getKey().space,e.getValue()));
    fut.markInitialized();
    return fut;
  }
  finally {
    busyLock.leaveBusy();
  }
}

@ SuppressWarnings ( "unchecked" ) public IgniteInternalFuture < ? > rebuildAllIndexes ( ) { if ( ! busyLock . enterBusy ( ) ) throw new IllegalStateException ( "Failed to get space size (grid is stopping)." ) ; try { GridCompoundFuture < ? , ? > fut = new GridCompoundFuture < Object , Object > ( ) ; for ( Map . Entry < TypeId , TypeDescriptor > e : types . entrySet ( ) ) fut . add ( ( IgniteInternalFuture ) rebuildIndexes ( e . getKey ( ) . space , e . getValue ( ) ) ) ; fut . markInitialized ( ) ; return fut ; } finally { busyLock . leaveBusy ( ) ; } }
rebuilds all search indexes for given spi .
