Package com.thinkaurelius.faunus

Examples of com.thinkaurelius.faunus.FaunusVertex.startPath()


        Map<Long, FaunusVertex> vertices = new HashMap<Long, FaunusVertex>();
        for (long i = 0; i < 15; i++) {
            FaunusVertex v = new FaunusVertex(i);
            v.setProperty("age", i);
            vertices.put(i, v);
            v.startPath();
        }
        final List<Pair<IntWritable, LongWritable>> results = runWithGraphNoIndex(vertices, mapReduceDriver);
        for (int i = 0; i < results.size(); i++) {
            assertEquals(results.get(i).getSecond().get(), 1l);
            assertEquals(results.get(i).getFirst().get(), i);
View Full Code Here


        Map<Long, FaunusVertex> vertices = new HashMap<Long, FaunusVertex>();
        for (long i = 0; i < 15; i++) {
            FaunusVertex v = new FaunusVertex(i);
            v.setProperty("age", i);
            vertices.put(i, v);
            v.startPath();
        }
        final List<Pair<Text, LongWritable>> results = runWithGraphNoIndex(vertices, mapReduceDriver);
        final List<String> sortedText = new ArrayList<String>();
        sortedText.addAll(Arrays.asList("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"));
        Collections.sort(sortedText);
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.