Examples of commit()


Examples of com.thinkaurelius.titan.core.TitanTransaction.commit()

        TitanTransaction dstTx = dstGraph.newTransaction();

        snapshotVertices(srcTx, dstTx);
        snapshotEdges(srcTx, dstTx);

        dstTx.commit();
        srcTx.commit();
    }

    private void snapshotVertices(TitanTransaction srcTx, TitanTransaction dstTx) {
        for (Vertex srcVertex: srcTx.getVertices()) {

Examples of com.thinkaurelius.titan.diskstorage.BackendTransaction.commit()

                            indexSerializer.newPropertyKey((TitanKey) itype, mutator);
                    }
                }

                if (!mutations.isEmpty()) mutatedVertexKeys.addAll(persist(mutations, tx));
                mutator.commit();
                return mutatedVertexKeys;
            }

            @Override
            public String toString() {

Examples of com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction.commit()

        } catch (StorageException e) {
            if (txh!=null) txh.rollback();
            txh=null;
            throw e;
        } finally {
            if (txh!=null) txh.commit();
        }
    }


    public static interface Transactional<R> {

Examples of com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.commit()

        graph.makeKey("test").dataType(Long.class).make();
        graph.makeKey("blah").dataType(Float.class).make();
        graph.makeKey("bloop").dataType(Integer.class).make();


        graph.commit();
        graph.shutdown();
        super.testCompetingThreads();
    }

}

Examples of com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.commit()

        TitanVertex v1 = graph.addVertex(null), v2 = graph.addVertex(null);
        TitanEdge e1 = v1.addEdge("father",v2);
        for (int i=1;i<=5;i++) e1.setProperty("key"+i,i);

        graph.commit();

        e1.remove();
        graph.commit();

    }

Examples of com.tinkerpop.blueprints.TransactionalGraph.commit()

    public void testTx() {
        TransactionalGraph graph = (TransactionalGraph) graphTest.generateGraph();
        ((SparkseeGraph) graph).typeScope.set(true);
        this.stopWatch();

        graph.commit();

        graph.addVertex(null).setProperty("name", "sergio");
        graph.addVertex(null).setProperty("name", "marko");
        assertTrue(graph.getVertices("name", "sergio").iterator().next()
                .getProperty("name").equals("sergio"));

Examples of com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.commit()

    startedOn = System.currentTimeMillis();

    OrientBaseGraph graphPool = new OrientGraph(url);

    OrientVertex superNode = graphPool.addVertex(null, "optimisticSuperNode", true);
    graphPool.commit();

    OptimisticThread[] ops = new OptimisticThread[THREADS];
    for (int i = 0; i < THREADS; ++i)
      ops[i] = new OptimisticThread(url, superNode, i, "thread" + i);

Examples of com.tinkerpop.blueprints.impls.orient.OrientGraph.commit()

    graph.addEdge(null, graph.getVertex(tomCruise), graph.getVertex(megRyan),"friend");
    totalElements++;
    graph.addEdge(null, graph.getVertex(tomCruise), graph.getVertex(nicoleKidman), "married").setProperty("year", 1990);
    totalElements++;

    graph.commit();
  }

  public void traverseSQLAllFromActorNoWhere() {
    List<ODocument> result1 = database.command(new OSQLSynchQuery<ODocument>("traverse * from " + tomCruise.getIdentity()))
        .execute();

Examples of com.tinkerpop.blueprints.util.wrappers.batch.BatchGraph.commit()

            graph.addEdge(null, vertexIn, vertexOut, fe.getLabel());
        }
      }

      // commit changes to the graph
      graph.commit();
    }

}

Examples of com.totalchange.jizz.data.blobs.JizzBlobWriter.commit()

        OutputStream outBlob = writer.getOutputStream();
        JizzBlobUtils.copyStream(inTest, outBlob);
        outBlob.close();
        inTest.close();

        String id = writer.commit();

        // Check can get back the committed blob
        JizzBlobReader reader = jizzBlobStore.retrieveBlob(id);

        // Compare to the test stream
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.