コード例 #1
0
 public void clearAllIndices() {
   for (UpdatableIndex index : myIndices.values()) {
     try {
       index.clear();
     } catch (StorageException e) {
       LOG.error(e);
       throw new RuntimeException(e);
     }
   }
 }
コード例 #2
0
 public void cleanupMemoryStorage() {
   for (UpdatableIndex index : myIndices.values()) {
     final IndexStorage indexStorage = ((MapReduceIndex) index).getStorage();
     index.getWriteLock().lock();
     try {
       ((MemoryIndexStorage) indexStorage).clearMemoryMap();
     } finally {
       index.getWriteLock().unlock();
     }
   }
 }
コード例 #3
0
 public void dispose() {
   for (UpdatableIndex index : myIndices.values()) {
     index.dispose();
   }
 }