package benchmarks.bonus;
import edu.umass.bc.RuntimeCreator;
import bench.RuntimeCreatorBench;
import benchmarks.Evaluator;
import edu.umass.pql.Env;
import edu.umass.pql.Join;
import edu.umass.pql.TableConstants;
import edu.umass.pql.VarConstants;
import edu.umass.pql.container.*;
import java.util.*;
public class RuntimePQL extends Evaluator implements TableConstants
{
protected Env env;
protected Join j;
protected RuntimeCreatorBench rc;
@Override
public void
init()
{
env = new Env (INT_TABLE | LONG_TABLE | DOUBLE_TABLE | OBJECT_TABLE,
new Object[] {
new int[14],
new long[5],
new double[5],
new Object[9]
});
rc = new RuntimeCreatorBench();
j = rc.bonus(env);
RuntimeCreator.init(j);
RuntimeCreator.alreadyInitialized = true;
}
public void
compute()
{
rc.compute(j);
this.result = env.v_object[5];
}
public String
getName()
{
return "runtime_pql";
}
}