private void deactivateAndDestroyDiskComponents() throws HyracksDataException { for (ILSMDiskComponent c : diskComponents) { c.deactivateAndDestroy(); } diskComponents.clear(); }
@Override public void cleanupArtifacts() throws HyracksDataException { if (!cleanedUpArtifacts) { cleanedUpArtifacts = true; final int bulkloadersCount = bulkloaderChain.size(); for (int i = 0; i < bulkloadersCount; i++) { bulkloaderChain.get(i).cleanupArtifacts();; } diskComponent.deactivateAndDestroy(); } }
@Override public void clear() throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to clear the index since it is not activated."); } ((ExternalIndexHarness) getHarness()).indexClear(); for (ILSMDiskComponent c : diskComponents) { c.deactivateAndDestroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.deactivateAndDestroy(); } diskComponents.clear(); secondDiskComponents.clear(); version = 0; }
@Override public void clear() throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to clear the index since it is not activated."); } getHarness().indexClear(); for (ILSMDiskComponent c : diskComponents) { c.deactivateAndDestroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.deactivateAndDestroy(); } diskComponents.clear(); secondDiskComponents.clear(); version = 0; }
@Override public void clear() throws HyracksDataException { if (!isActive) { throw new HyracksDataException("Failed to clear the index since it is not activated."); } getHarness().indexClear(); for (ILSMDiskComponent c : diskComponents) { c.deactivateAndDestroy(); // Remove from second list to avoid destroying twice secondDiskComponents.remove(c); } for (ILSMDiskComponent c : secondDiskComponents) { c.deactivateAndDestroy(); } diskComponents.clear(); secondDiskComponents.clear(); version = 0; }
private void exitComponent(ILSMDiskComponent diskComponent) throws HyracksDataException { diskComponent.threadExit(LSMOperationType.SEARCH, false, false); if (diskComponent.getState() == ILSMComponent.ComponentState.INACTIVE) { if (replicationEnabled) { componentsToBeReplicated.clear(); componentsToBeReplicated.add(diskComponent); lsmIndex.scheduleReplication(null, componentsToBeReplicated, ReplicationOperation.DELETE, null); } diskComponent.deactivateAndDestroy(); } }
ReplicationOperation.DELETE, opType); ((ILSMDiskComponent) c).deactivateAndDestroy(); break; default: