private void destroyDiskComponents() throws HyracksDataException { for (ILSMDiskComponent c : diskComponents) { c.destroy(); } }
@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; }