Ejemplo n.º 1
0
 @Override
 public boolean dropIndex(final IndexType type) {
   // close and drop index (return true if no index exists)
   final Index index = index(type);
   close(type);
   return index == null || index.drop();
 }
Ejemplo n.º 2
0
 /**
  * Closes the specified index.
  *
  * @param type index to be closed
  */
 private synchronized void close(final IndexType type) {
   // close index and invalidate reference
   final Index index = index(type);
   if (index != null) {
     index.close();
     set(type, null);
   }
 }