Package com.tinkerpop.furnace.util

Examples of com.tinkerpop.furnace.util.VertexQueryBuilder.build()


        if (graphMemory.isInitialIteration()) {
            vertex.setProperty(COUNTS, 1l);
        } else {
            final VertexQueryBuilder query = this.queries.get((graphMemory.getIteration() - 1) % this.queries.size());
            long newCount = 0l;
            for (final Vertex adjacent : query.build(vertex).vertices()) {
                newCount = newCount + (Long) adjacent.getProperty(COUNTS);
            }
            vertex.setProperty(COUNTS, newCount);
        }
    }
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.