MCPcopy Create free account
hub / github.com/cmu-db/benchbase / totalWeight

Method totalWeight

src/main/java/com/oltpbenchmark/Phase.java:142–148  ·  view source on GitHub ↗

Computes the sum of weights. Usually needs to add up to 100% @return The total weight

()

Source from the content-addressed store, hash-verified

140 * @return The total weight
141 */
142 public double totalWeight() {
143 double total = 0.0;
144 for (Double d : weights) {
145 total += d;
146 }
147 return total;
148 }
149
150 /**
151 * This simply computes the next transaction by randomly selecting one based on the weights of

Callers 1

chooseTransactionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected