public abstract class AbstractOperatorBenchmark extends AbstractBenchmark
| Modifier and Type | Field and Description |
|---|---|
protected LocalQueryRunner |
localQueryRunner |
protected Session |
session |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOperatorBenchmark(LocalQueryRunner localQueryRunner,
String benchmarkName,
int warmupIterations,
int measuredIterations) |
protected |
AbstractOperatorBenchmark(Session session,
LocalQueryRunner localQueryRunner,
String benchmarkName,
int warmupIterations,
int measuredIterations) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<Driver> |
createDrivers(TaskContext taskContext) |
protected OperatorFactory |
createHashProjectOperator(int operatorId,
PlanNodeId planNodeId,
List<Type> types) |
protected OperatorFactory |
createTableScanOperator(int operatorId,
PlanNodeId planNodeId,
String tableName,
String... columnNames) |
protected Map<String,Long> |
execute(TaskContext taskContext) |
protected List<Type> |
getColumnTypes(String tableName,
String... columnNames) |
protected Map<String,Long> |
runOnce()
Runs the benchmark and returns the result metrics
|
protected void |
tearDown()
Clean up any state from the benchmark.
|
getBenchmarkName, getMeasuredIterations, getWarmupIterations, runBenchmark, runBenchmark, setUpprotected final LocalQueryRunner localQueryRunner
protected final Session session
protected AbstractOperatorBenchmark(LocalQueryRunner localQueryRunner, String benchmarkName, int warmupIterations, int measuredIterations)
protected AbstractOperatorBenchmark(Session session, LocalQueryRunner localQueryRunner, String benchmarkName, int warmupIterations, int measuredIterations)
protected void tearDown()
AbstractBenchmarktearDown in class AbstractBenchmarkprotected final OperatorFactory createTableScanOperator(int operatorId, PlanNodeId planNodeId, String tableName, String... columnNames)
protected final OperatorFactory createHashProjectOperator(int operatorId, PlanNodeId planNodeId, List<Type> types)
protected abstract List<Driver> createDrivers(TaskContext taskContext)
protected Map<String,Long> execute(TaskContext taskContext)
protected Map<String,Long> runOnce()
AbstractBenchmarkrunOnce in class AbstractBenchmarkCopyright © 2012–2021. All rights reserved.