private void deactivateDiskComponents() throws HyracksDataException { for (ILSMDiskComponent c : diskComponents) { c.deactivateAndPurge(); } }
@Override public void deactivate(boolean flushOnExit) throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to deactivate the index since it is already deactivated."); } for (ILSMDiskComponent c : diskComponents) { c.deactivateAndPurge(); } for (ILSMDiskComponent c : secondDiskComponents) { if (!diskComponents.contains(c)) { c.deactivateAndPurge(); } } isActive = false; }
@Override public void deactivate(boolean flushOnExit) throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to deactivate the index since it is already deactivated."); } for (ILSMDiskComponent c : diskComponents) { c.deactivateAndPurge(); } for (ILSMDiskComponent c : secondDiskComponents) { // Only deactivate non shared components if (!diskComponents.contains(c)) { c.deactivateAndPurge(); } } isActive = false; }
@Override public void deactivate(boolean flushOnExit) throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to deactivate the index since it is already deactivated."); } // Even though, we deactivate the index, we don't exit components or // modify any of the lists to make sure they // are there if the index was opened again for (ILSMDiskComponent c : diskComponents) { c.deactivateAndPurge(); } for (ILSMDiskComponent c : secondDiskComponents) { // Only deactivate non shared components if (!diskComponents.contains(c)) { c.deactivateAndPurge(); } } isActive = false; }