mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-16 17:34:52 -06:00
preprocessor fix for ratio calculations
This commit is contained in:
parent
804830c1e8
commit
09fd16a632
@ -48,6 +48,8 @@ import java.util.stream.Collectors;
|
||||
* Thus if you feed it one create statement at a time, it will yield a workload with just that,
|
||||
* and if you feed it an elaborate schema, it will generate a workload inclusive of all
|
||||
* provided elements.
|
||||
*
|
||||
* @see <a href="https://cassandra.apache.org/doc/trunk/cassandra/cql/index.html">Apache Cassandra CQL Docs</a>
|
||||
*/
|
||||
public class CqlWorkloadExporter {
|
||||
private final static Logger logger = LogManager.getLogger(CqlWorkloadExporter.class);
|
||||
|
@ -25,6 +25,9 @@ public class RatioCalculator implements Function<CqlModel,CqlModel> {
|
||||
|
||||
@Override
|
||||
public CqlModel apply(CqlModel model) {
|
||||
if (!model.hasStats()) {
|
||||
return model;
|
||||
}
|
||||
double totalReads = 0.0d;
|
||||
double totalWrites = 0.0d;
|
||||
double totalSpace = 0.0d;
|
||||
|
Loading…
Reference in New Issue
Block a user