Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Created generator and measurements packages

  • Loading branch information...
commit f588645b7b7506ad48be0234d5b6f7892f3a0e73 1 parent dca7bdd
@johanoskarsson johanoskarsson authored
View
2  src/com/yahoo/ycsb/Client.java
@@ -22,6 +22,8 @@
import java.text.DecimalFormat;
import java.util.*;
+import com.yahoo.ycsb.measurements.Measurements;
+
//import org.apache.log4j.BasicConfigurator;
/**
View
2  src/com/yahoo/ycsb/DBWrapper.java
@@ -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.
*/
View
2  src/com/yahoo/ycsb/CounterGenerator.java → ...ahoo/ycsb/generator/CounterGenerator.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
/**
* Generates a sequence of integers 0, 1, ...
View
4 src/com/yahoo/ycsb/DiscreteGenerator.java → ...hoo/ycsb/generator/DiscreteGenerator.java
@@ -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.
*/
View
2  src/com/yahoo/ycsb/Generator.java → src/com/yahoo/ycsb/generator/Generator.java
@@ -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.)
View
2  src/com/yahoo/ycsb/IntegerGenerator.java → ...ahoo/ycsb/generator/IntegerGenerator.java
@@ -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
View
4 ...yahoo/ycsb/ScrambledZipfianGenerator.java → .../generator/ScrambledZipfianGenerator.java
@@ -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
View
2  ...com/yahoo/ycsb/SkewedLatestGenerator.java → ...ycsb/generator/SkewedLatestGenerator.java
@@ -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.
View
2  src/com/yahoo/ycsb/UniformGenerator.java → ...ahoo/ycsb/generator/UniformGenerator.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Vector;
View
2  ...m/yahoo/ycsb/UniformIntegerGenerator.java → ...sb/generator/UniformIntegerGenerator.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Random;
View
2  src/com/yahoo/ycsb/ZipfianGenerator.java → ...ahoo/ycsb/generator/ZipfianGenerator.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.generator;
import java.util.Random;
View
2  src/com/yahoo/ycsb/Measurements.java → ...yahoo/ycsb/measurements/Measurements.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.util.HashMap;
View
2  src/com/yahoo/ycsb/OneMeasurement.java → ...hoo/ycsb/measurements/OneMeasurement.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
View
2  ...m/yahoo/ycsb/OneMeasurementHistogram.java → ...measurements/OneMeasurementHistogram.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.text.DecimalFormat;
View
2  .../yahoo/ycsb/OneMeasurementTimeSeries.java → ...easurements/OneMeasurementTimeSeries.java
@@ -15,7 +15,7 @@
* LICENSE file.
*/
-package com.yahoo.ycsb;
+package com.yahoo.ycsb.measurements;
import java.io.PrintStream;
import java.text.DecimalFormat;
View
9 src/com/yahoo/ycsb/workloads/CoreWorkload.java
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.