Permalink
Browse files

Created generator and measurements packages

  • Loading branch information...
1 parent dca7bdd commit f588645b7b7506ad48be0234d5b6f7892f3a0e73 @johanoskarsson johanoskarsson committed May 3, 2010
@@ -22,6 +22,8 @@
import java.text.DecimalFormat;
import java.util.*;
+import com.yahoo.ycsb.measurements.Measurements;
+
//import org.apache.log4j.BasicConfigurator;
/**
@@ -22,6 +22,8 @@
import java.util.Set;
import java.util.Vector;
+import com.yahoo.ycsb.measurements.Measurements;
+
/**
* Wrapper around a "real" DB that measures latencies and counts return codes.
*/
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
/**
* Generates a sequence of integers 0, 1, ...
@@ -15,11 +15,13 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Vector;
import java.util.Random;
+import com.yahoo.ycsb.WorkloadException;
+
/**
* Generates a distribution by choosing from a discrete set of values.
*/
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
/**
* An expression that generates a sequence of string values, following some distribution (Uniform, Zipfian, Sequential, etc.)
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
/**
* A generator that is capable of generating ints as well as strings
@@ -15,7 +15,9 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
+
+import com.yahoo.ycsb.Utils;
/**
* A generator of a zipfian distribution. It produces a sequence of items, such that some items are more popular than others, according
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
/**
* Generate a popularity distribution of items, skewed to favor recent items significantly more than older items.
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Vector;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Random;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Random;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.util.HashMap;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.text.DecimalFormat;
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.text.DecimalFormat;
@@ -19,6 +19,15 @@
import java.util.Properties;
import com.yahoo.ycsb.*;
+import com.yahoo.ycsb.generator.CounterGenerator;
+import com.yahoo.ycsb.generator.DiscreteGenerator;
+import com.yahoo.ycsb.generator.Generator;
+import com.yahoo.ycsb.generator.IntegerGenerator;
+import com.yahoo.ycsb.generator.ScrambledZipfianGenerator;
+import com.yahoo.ycsb.generator.SkewedLatestGenerator;
+import com.yahoo.ycsb.generator.UniformIntegerGenerator;
+import com.yahoo.ycsb.generator.ZipfianGenerator;
+import com.yahoo.ycsb.measurements.Measurements;
import java.util.HashMap;
import java.util.HashSet;

0 comments on commit f588645

Please sign in to comment.