blob: 28845ed8739250e5f31deec174ae5cba00f5e6b2 [file] [log] [blame]
/*
* Copyright 2009-2010 by The Regents of the University of California
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may obtain a copy of the License from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package edu.uci.ics.hyracks.storage.am.common;
import edu.uci.ics.hyracks.storage.am.common.TestOperationSelector.TestOperation;
public class TestWorkloadConf {
public final TestOperation[] ops;
public final double[] opProbs;
public TestWorkloadConf(TestOperation[] ops, double[] opProbs) {
this.ops = ops;
this.opProbs = opProbs;
}
public String toString() {
StringBuilder strBuilder = new StringBuilder();
for (TestOperation op : ops) {
strBuilder.append(op.toString());
strBuilder.append(',');
}
strBuilder.deleteCharAt(strBuilder.length() - 1);
return strBuilder.toString();
}
}