Package com.thinkaurelius.titan.core

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


    private void createIndices(DendriteGraph graph) {
        TitanTransaction tx = graph.newTransaction();

        if (tx.getType("in_degrees") == null) {
            tx.makeKey("in_degrees")
                    .dataType(Integer.class)
                    .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                    .make();
        }
View Full Code Here


                    .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                    .make();
        }

        if (tx.getType("out_degrees") == null) {
            tx.makeKey("out_degrees")
                    .dataType(Integer.class)
                    .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                    .make();
        }
View Full Code Here

                    .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                    .make();
        }

        if (tx.getType("degrees") == null) {
            tx.makeKey("degrees")
                    .dataType(Integer.class)
                    .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                    .make();
        }
View Full Code Here

    private void createIndices(DendriteGraph graph, String algorithm) {
        TitanTransaction tx = graph.newTransaction();

        if (algorithm.equals("centrality")) {
            if (tx.getType("snap_degree") == null) {
                tx.makeKey("snap_degree")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_closeness") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_closeness") == null) {
                tx.makeKey("snap_closeness")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_betweenness") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_betweenness") == null) {
                tx.makeKey("snap_betweenness")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_eigenvector") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_eigenvector") == null) {
                tx.makeKey("snap_eigenvector")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_network_constraint") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_network_constraint") == null) {
                tx.makeKey("snap_network_constraint")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_clustering_coefficient") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_clustering_coefficient") == null) {
                tx.makeKey("snap_clustering_coefficient")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_pagerank") == null) {
View Full Code Here

                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_pagerank") == null) {
                tx.makeKey("snap_pagerank")
                        .dataType(FullDouble.class)
                        .indexed(DendriteGraph.INDEX_NAME, Vertex.class)
                        .make();
            }
            if (tx.getType("snap_hub_score") == null) {
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.