@Override public synchronized void destroy() throws HyracksDataException { if (isActive) { throw HyracksDataException.create(ErrorCode.CANNOT_DESTROY_ACTIVE_INDEX); } destroyDiskComponents(); fileManager.deleteDirs(); }
@Override public void destroy() throws HyracksDataException { if (isActive) { throw new HyracksDataException("Failed to destroy the index since it is activated."); } for (ILSMDiskComponent c : diskComponents) { c.destroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.destroy(); } diskComponents.clear(); secondDiskComponents.clear(); fileManager.deleteDirs(); version = 0; }
@Override public void destroy() throws HyracksDataException { if (isActive) { throw new HyracksDataException("Failed to destroy the index since it is activated."); } for (ILSMDiskComponent c : diskComponents) { c.destroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.destroy(); } diskComponents.clear(); secondDiskComponents.clear(); fileManager.deleteDirs(); version = 0; }
@Override public void destroy() throws HyracksDataException { if (isActive) { throw new HyracksDataException("Failed to destroy the index since it is activated."); } for (ILSMDiskComponent c : diskComponents) { c.destroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.destroy(); } diskComponents.clear(); secondDiskComponents.clear(); fileManager.deleteDirs(); version = 0; }