Package org.apache.cassandra.stress.generate.values

Examples of org.apache.cassandra.stress.generate.values.Generator


        }

        void fill(int component)
        {
            long seed = clusteringSeeds[component - 1];
            Generator gen = generator.clusteringComponents.get(component);
            gen.setSeed(seed);
            clusteringSeeds[component] = seed(clusteringComponents[component - 1].peek(), generator.clusteringComponents.get(component - 1).type, seed);
            fill(clusteringComponents[component], (int) gen.clusteringDistribution.next(), gen);
        }
View Full Code Here


            // we always start at the leaf level
            int depth = clusteringComponents.length - 1;
            // fill the row with the position we *were* at (unless pre-start)
            for (int i = clusteringSeeds.length ; i < row.row.length ; i++)
            {
                Generator gen = generator.valueComponents.get(i - clusteringSeeds.length);
                long seed = clusteringSeeds[depth];
                seed = seed(clusteringComponents[depth].peek(), generator.clusteringComponents.get(depth).type, seed);
                gen.setSeed(seed);
                row.row[i] = gen.generate();
            }
            clusteringComponents[depth].poll();

            return advance(depth, continueChance);
        }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.stress.generate.values.Generator

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.