Package org.apache.cassandra.stress.generate

Examples of org.apache.cassandra.stress.generate.FasterRandom


        {
            nodes.put(c, list.append(c));
            canon.add(c);
            c++;
        }
        FasterRandom rand = new FasterRandom();
        assert list.isWellFormed();
        for (int loop = 0 ; loop < 100 ; loop++)
        {
            System.out.println(loop);
            for (int i = 0 ; i < 100000 ; i++)
            {
                int index = rand.nextInt(100000);
                Integer seed = list.get(index);
//                assert canon.headSet(seed, false).size() == index;
                list.remove(nodes.remove(seed));
                canon.remove(seed);
                nodes.put(c, list.append(c));
View Full Code Here

TOP

Related Classes of org.apache.cassandra.stress.generate.FasterRandom

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.