Package com.thinkaurelius.titan.core

Examples of com.thinkaurelius.titan.core.TitanLabel


    }

    @Test
    public void elementCreationPerformance() {
        TitanLabel connect = makeSimpleEdgeLabel("connect");
        int noNodes = 20000;
        TitanVertex[] nodes = new TitanVertex[noNodes];
        PerformanceTest p = new PerformanceTest(true);
        for (int i = 0; i < noNodes; i++) {
            nodes[i] = tx.addVertex();
View Full Code Here



    @Test
    public void testValueOrdering() {
        StandardTitanGraph graph = (StandardTitanGraph) StorageSetup.getInMemoryGraph();
        TitanLabel father = graph.makeLabel("father").manyToOne().make();
        for (int i=1;i<=5;i++) graph.makeKey("key"+i).single().dataType(Integer.class).make();

        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);
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.core.TitanLabel

Copyright © 2018 www.massapicom. 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.