summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h')
-rw-r--r--searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h b/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h
new file mode 100644
index 00000000000..1459cbfe856
--- /dev/null
+++ b/searchlib/src/tests/queryeval/iterator_benchmark/benchmark_blueprint_factory.h
@@ -0,0 +1,27 @@
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+#include "common.h"
+#include <memory>
+
+namespace search::queryeval { class Blueprint; }
+
+namespace search::queryeval::test {
+
+/**
+ * Interface for creating a Blueprint.
+ */
+class BenchmarkBlueprintFactory {
+public:
+ virtual ~BenchmarkBlueprintFactory() = default;
+ virtual std::unique_ptr<Blueprint> make_blueprint() = 0;
+};
+
+std::unique_ptr<BenchmarkBlueprintFactory>
+make_blueprint_factory(const FieldConfig& field_cfg, QueryOperator query_op,
+ uint32_t num_docs, uint32_t default_values_per_document,
+ double op_hit_ratio, uint32_t children);
+
+}
+