Examples of DeleteOperation


Examples of ch.entwine.weblounge.common.repository.DeleteOperation

        ContentRepositoryResourceOperation<?> resourceOp = (ContentRepositoryResourceOperation<?>) op;

        // Is the resource about to be deleted?
        ResourceURI opURI = resourceOp.getResourceURI();
        if (op instanceof DeleteOperation && equalsByIdOrPath(uri, opURI)) {
          DeleteOperation deleteOp = (DeleteOperation) op;
          List<ResourceURI> deleteCandidates = new ArrayList<ResourceURI>();
          for (ResourceURI u : uris) {
            if (deleteOp.allVersions() || u.getVersion() == opURI.getVersion()) {
              deleteCandidates.add(u);
            }
          }
          uris.removeAll(deleteCandidates);
        }
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.DeleteOperation

            // (a) Let w be the current node in the post-order traversal of T1
            Node w = (Node) postOrder.nextElement();
            // (b) If w has no partner in M'
            if (fLeftToRightMatchPrime.get(w) == null) {
                // Append DEL(w) to E
                TreeEditOperation delete = new DeleteOperation(w);
                fEditScript.add(delete);
                dels.add(delete);
            }
        }
        // Apply DEL(w) to T1
View Full Code Here

Examples of ch.uzh.ifi.seal.changedistiller.treedifferencing.operation.DeleteOperation

        Node methodInvocation = addToLeft(METHOD_INVOCATION, "foo.bar();");
        createEditScript();
        assertThat(fEditScript.size(), is(1));
        TreeEditOperation operation = fEditScript.get(0);
        assertThat(operation.getOperationType(), is(OperationType.DELETE));
        DeleteOperation delete = (DeleteOperation) operation;
        assertThat(delete.getParentNode(), is(fRootLeft));
        assertThat(delete.getNodeToDelete(), is(methodInvocation));
    }
View Full Code Here

Examples of com.basho.riak.client.core.operations.DeleteOperation

        ArgumentCaptor<DeleteOperation> captor =
            ArgumentCaptor.forClass(DeleteOperation.class);
        verify(mockCluster).execute(captor.capture());

        DeleteOperation operation = captor.getValue();
        RiakKvPB.RpbDelReq.Builder builder =
            (RiakKvPB.RpbDelReq.Builder) Whitebox.getInternalState(operation, "reqBuilder");

        assertTrue(builder.hasVclock());
        assertEquals(1, builder.getDw());
View Full Code Here

Examples of com.basho.riak.client.core.operations.DeleteOperation

       
        for (BinaryValue k : keyList)
        {
            Location location = new Location(namespace, k);
            DeleteOperation.Builder delOpBuilder = new DeleteOperation.Builder(location);
            DeleteOperation delOp = delOpBuilder.build();
            delOp.addListener(listener);
            semaphore.acquire();
            cluster.execute(delOp);
        }

        if (!keyList.isEmpty())
View Full Code Here

Examples of com.basho.riak.client.core.operations.DeleteOperation

    cluster.execute(fetch);

    RiakObject fetchReturn = fetch.get();

    DeleteOperation delete = new DeleteOperation(bucket, returnedKey);

    cluster.execute(delete);

    delete.get();

    FetchOperation<RiakObject> tombstoneFetch =
      new FetchOperation<RiakObject>(bucket, returnedKey)
      .withConverter(domainObjectConverter);
View Full Code Here

Examples of com.basho.riak.client.core.operations.DeleteOperation

        FetchOperation.Response response = fetchOp.get();
        RiakObject rObj2 = response.getObjectList().get(0);
       
        assertEquals(rObj.getValue(), rObj2.getValue());
       
        DeleteOperation delOp =
            new DeleteOperation.Builder(location)
                .withVclock(rObj2.getVClock()).build();
        cluster.execute(delOp);
        delOp.get();
       
        fetchOp =
            new FetchOperation.Builder(location).build();
       
        cluster.execute(fetchOp);
View Full Code Here

Examples of com.hazelcast.map.impl.operation.DeleteOperation

        invalidateNearCache(key);
        return previousValue;
    }

    protected void deleteInternal(Data key) {
        DeleteOperation operation = new DeleteOperation(name, key);
        invokeOperation(key, operation);
        invalidateNearCache(key);
    }
View Full Code Here

Examples of com.hazelcast.map.impl.operation.DeleteOperation

        return key;
    }

    @Override
    protected Operation prepareOperation() {
        DeleteOperation op = new DeleteOperation(name, key);
        op.setThreadId(threadId);
        return op;
    }
View Full Code Here

Examples of com.hazelcast.map.operation.DeleteOperation

        return key;
    }

    @Override
    protected Operation prepareOperation() {
        DeleteOperation op = new DeleteOperation(name, key);
        op.setThreadId(threadId);
        return op;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.