diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-03-23 20:45:20 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-03-23 20:45:20 +0100 |
commit | 90076b63f2a0c141e133cdc45f295bff79d44509 (patch) | |
tree | 4edecdb9f10b50ebe3405b7e2344f11db446a4fc /searchlib | |
parent | f71844d7b29c4a20274481a5a3031bcaa962fe0e (diff) |
Use explicit instantiation of SingleValueNumericAttribute
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp | 3 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp b/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp index 1a0d24b0595..5bfa44a2ff8 100644 --- a/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp +++ b/searchlib/src/vespa/searchlib/attribute/createsinglestd.cpp @@ -6,9 +6,10 @@ #include "reference_attribute.h" #include "singlestringattribute.h" #include "singleboolattribute.h" -#include "singlenumericattribute.hpp" +#include "singlenumericattribute.h" #include "single_raw_attribute.h" #include <vespa/eval/eval/fast_value.h> +#include <vespa/searchcommon/attribute/config.h> #include <vespa/searchlib/tensor/dense_tensor_attribute.h> #include <vespa/searchlib/tensor/serialized_fast_value_attribute.h> diff --git a/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp index f107cbe55a4..43e400e14e3 100644 --- a/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singlenumericattribute.cpp @@ -1,8 +1,15 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -#include "singlenumericattribute.h" +#include "singlenumericattribute.hpp" namespace search { +template class SingleValueNumericAttribute<IntegerAttributeTemplate<int8_t>>; +template class SingleValueNumericAttribute<IntegerAttributeTemplate<int16_t>>; +template class SingleValueNumericAttribute<IntegerAttributeTemplate<int32_t>>; +template class SingleValueNumericAttribute<IntegerAttributeTemplate<int64_t>>; +template class SingleValueNumericAttribute<FloatingPointAttributeTemplate<float>>; +template class SingleValueNumericAttribute<FloatingPointAttributeTemplate<double>>; + } // namespace search |