@Override public synchronized void remove(TitanVertexProperty property) { map.remove(property.value(),property); }
void removeOp(Operator<?> opToRemove) { Set<Operator<?>> s = operatorToWorkOperators.get(opToRemove); s.remove(opToRemove); List<Operator<?>> c1 = ImmutableList.copyOf(s); if (!c1.isEmpty()) { for (Operator<?> op1 : c1) { operatorToWorkOperators.remove(op1, opToRemove); // Remove operator } operatorToWorkOperators.removeAll(opToRemove); // Remove entry for operator } }
@Override public void remove(TitanVertexProperty property) { map.remove(property.value(),property); }
void removeOpAndCombineWork(Operator<?> opToRemove, Operator<?> replacementOp) { Set<Operator<?>> s = operatorToWorkOperators.get(opToRemove); s.remove(opToRemove); List<Operator<?>> c1 = ImmutableList.copyOf(s); List<Operator<?>> c2 = ImmutableList.copyOf(operatorToWorkOperators.get(replacementOp)); if (!c1.isEmpty() && !c2.isEmpty()) { for (Operator<?> op1 : c1) { operatorToWorkOperators.remove(op1, opToRemove); // Remove operator operatorToWorkOperators.putAll(op1, c2); // Add ops of new collection } operatorToWorkOperators.removeAll(opToRemove); // Remove entry for operator for (Operator<?> op2 : c2) { operatorToWorkOperators.putAll(op2, c1); // Add ops to existing collection } } }
@Override public void remove(JanusGraphVertexProperty property) { map.remove(property.value(),property); }
@Override public synchronized void remove(JanusGraphVertexProperty property) { map.remove(property.value(),property); }
if (!unusedMappings.remove(key, field)) { throw new JsonMappingException(String.format( "FATAL: Expected to be a bug in Embulk. Mapping \"%s: (%s) %s\" might have already been processed, or not in %s.",
public synchronized void removeShm(ShortCircuitShm shm) { if (LOG.isTraceEnabled()) { LOG.trace("removing shm " + shm); } // Stop tracking the shmId. RegisteredShm removedShm = segments.remove(shm.getShmId()); Preconditions.checkState(removedShm == shm, "failed to remove " + shm.getShmId()); // Stop tracking the slots. for (Iterator<Slot> iter = shm.slotIterator(); iter.hasNext(); ) { Slot slot = iter.next(); boolean removed = slots.remove(slot.getBlockId(), slot); Preconditions.checkState(removed); slot.makeInvalid(); } // De-allocate the memory map and close the shared file. shm.free(); }
public synchronized void unregisterSlot(SlotId slotId) throws InvalidRequestException { if (!enabled) { if (LOG.isTraceEnabled()) { LOG.trace("unregisterSlot: ShortCircuitRegistry is " + "not enabled."); } throw new UnsupportedOperationException(); } ShmId shmId = slotId.getShmId(); RegisteredShm shm = segments.get(shmId); if (shm == null) { throw new InvalidRequestException("there is no shared memory segment " + "registered with shmId " + shmId); } Slot slot = shm.getSlot(slotId.getSlotIdx()); slot.makeInvalid(); shm.unregisterSlot(slotId.getSlotIdx()); slots.remove(slot.getBlockId(), slot); }
public boolean removeSubscriber(String messageName, MessageSubscriber messageSubscriber) { return messageSubscribers != null && messageSubscribers.remove(messageName, messageSubscriber); }
/** * Removes the entry with the given key.<p> * * @param key the key */ public void remove(K key) { V removedValue = m_forwardMap.remove(key); if (removedValue != null) { m_reverseMap.remove(removedValue, key); } }
private void restoreQueue(List<TaskInfoInVisitingSegment> nodeQueue, HashMultimap<TaskInfo, Integer> visitingNodes, GraphEdge toBeRemoved) { TaskInfoInVisitingSegment nextInQueue = null; while (nextInQueue == null || !toBeRemoved.from.equals(nextInQueue.taskInfo)) { nextInQueue = nodeQueue.get(0); visitingNodes.remove(nextInQueue.taskInfo, nextInQueue.visitingSegment); if (!toBeRemoved.from.equals(nextInQueue.taskInfo)) { nodeQueue.remove(0); } } }
@Override public synchronized void remove(TitanVertexProperty property) { map.remove(property.value(),property); }
@Override public void remove(TitanProperty property) { map.remove(property.getValue(),property); }
@Override public void remove(TitanVertexProperty property) { map.remove(property.value(),property); }
@Override public synchronized void remove(TitanProperty property) { map.remove(property.getValue(),property); }
protected synchronized void unwrapConnection ( final EntryWrapper wrapper ) { this.entryMap.remove ( wrapper.getConnectionDescriptor (), wrapper ); if ( !this.entryMap.containsKey ( wrapper.getConnectionDescriptor () ) ) { wrapper.getEntry ().dispose (); } }
protected synchronized void unwrapConnection ( final EntryWrapper wrapper ) { this.entryMap.remove ( wrapper.getConnectionDescriptor (), wrapper ); if ( !this.entryMap.containsKey ( wrapper.getConnectionDescriptor () ) ) { wrapper.getEntry ().dispose (); } }