summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-05-06 12:12:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-05-06 12:12:35 +0000
commitd2a15fedd93ee1fa30e2a7ef769f3378675d3be3 (patch)
tree9075ccf0ddc4e8011c92c0d990f6e8b10c15e0fe /searchcore
parent2c7f968a8ada84664fc968bddad0ca43e4c859a6 (diff)
Deinline test code.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp
new file mode 100644
index 00000000000..280ef358d26
--- /dev/null
+++ b/searchcore/src/vespa/searchcore/proton/test/attribute_vectors.cpp
@@ -0,0 +1,17 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#pragma once
+
+#include "attribute_utils.h"
+#include <vespa/searchlib/attribute/integerbase.h>
+#include <vespa/searchlib/attribute/singlenumericattribute.hpp>
+
+namespace proton::test {
+
+using Int32Attribute = search::SingleValueNumericAttribute<search::IntegerAttributeTemplate<int32_t> >;
+
+inline std::unique_ptr<Int32Attribute>
+createInt32Attribute(const vespalib::string &name) {
+ return std::make_unique<Int32Attribute>(name, AttributeUtils::getInt32Config());
+}
+
+}