public void releaseAllReferencesFromTask(BatchTask<?, ?> referenceHolder) { // go through all registered variables for (Map.Entry<BroadcastVariableKey, BroadcastVariableMaterialization<?, ?>> entry : variables.entrySet()) { BroadcastVariableMaterialization<?, ?> mat = entry.getValue(); // release the reference if (mat.decrementReferenceIfHeld(referenceHolder)) { // remove if no one holds a reference and no one concurrently replaced the entry variables.remove(entry.getKey(), mat); } } }
public void releaseAllReferencesFromTask(BatchTask<?, ?> referenceHolder) { // go through all registered variables for (Map.Entry<BroadcastVariableKey, BroadcastVariableMaterialization<?, ?>> entry : variables.entrySet()) { BroadcastVariableMaterialization<?, ?> mat = entry.getValue(); // release the reference if (mat.decrementReferenceIfHeld(referenceHolder)) { // remove if no one holds a reference and no one concurrently replaced the entry variables.remove(entry.getKey(), mat); } } }
public void releaseAllReferencesFromTask(BatchTask<?, ?> referenceHolder) { // go through all registered variables for (Map.Entry<BroadcastVariableKey, BroadcastVariableMaterialization<?, ?>> entry : variables.entrySet()) { BroadcastVariableMaterialization<?, ?> mat = entry.getValue(); // release the reference if (mat.decrementReferenceIfHeld(referenceHolder)) { // remove if no one holds a reference and no one concurrently replaced the entry variables.remove(entry.getKey(), mat); } } }
public void releaseAllReferencesFromTask(BatchTask<?, ?> referenceHolder) { // go through all registered variables for (Map.Entry<BroadcastVariableKey, BroadcastVariableMaterialization<?, ?>> entry : variables.entrySet()) { BroadcastVariableMaterialization<?, ?> mat = entry.getValue(); // release the reference if (mat.decrementReferenceIfHeld(referenceHolder)) { // remove if no one holds a reference and no one concurrently replaced the entry variables.remove(entry.getKey(), mat); } } }
decrementReferenceIfHeld(referenceHolder);
decrementReferenceIfHeld(referenceHolder);
decrementReferenceIfHeld(referenceHolder);
decrementReferenceIfHeld(referenceHolder);