Examples of autoStartTransaction()


Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        Iterator<Vertex> itty = graph.getIndex("testIdx", Vertex.class).query("name", "*rko").iterator();
        int counter = 0;
        while (itty.hasNext()) {
            counter++;
            assertEquals(itty.next().getProperty("name"), "marko");
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        final Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        assertEquals(count(graph.getVertices()), 10);

        assertEquals(count(graph.getEdges()), 9);
        for (final Edge edge : graph.getEdges()) {
            long idA = (Long) edge.getVertex(Direction.OUT).getId();
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        final Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        assertEquals(count(graph.getVertices()), ids.size());
        for (final Long id : ids) {
            assertNotNull(graph.getVertex(id));
            assertEquals(graph.getVertex(id).getProperty("theKey"), id);
            assertEquals(graph.getVertex(id).getPropertyKeys().size(), 1);
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        final Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        assertEquals(count(graph.getVertices()), ids.size());
        assertNotNull(graph.getVertex(100l));
        assertNotNull(graph.getVertex(5l));
        assertNotNull(graph.getVertex(10l));
        assertNotNull(graph.getVertex(4l));
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        final Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);

        assertEquals(count(graph.getIndices()), 1);

        assertEquals(graph.getIndexedKeys(Vertex.class).size(), 2);
        assertTrue(graph.getIndexedKeys(Vertex.class).contains("name"));
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        assertEquals(count(graph.getVertices()), 10);
        for (final Long id : vertexIds) {
            Vertex vertex = graph.getVertex(id);
            assertNull(vertex.getProperty("a"));
            assertEquals(vertex.getProperty("b"), 3);
View Full Code Here

Examples of com.tinkerpop.blueprints.impls.neo4j2.Neo4j2Graph.autoStartTransaction()

        batch.shutdown();

        // native neo4j graph load

        Neo4j2Graph graph = new Neo4j2Graph(directory);
        graph.autoStartTransaction(true);
        assertEquals(count(graph.getVertices()), 6);
        assertEquals(count(graph.getEdges()), 6);
        assertEquals(count(graph.getVertex("1").getEdges(Direction.OUT)), 3);
        assertEquals(count(graph.getVertex("1").getEdges(Direction.IN)), 0);
        Vertex marko = graph.getVertex("1");
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.