aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h')
-rw-r--r--searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h b/searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h
new file mode 100644
index 00000000000..e311fba076e
--- /dev/null
+++ b/searchlib/src/vespa/searchlib/features/direct_tensor_attribute_executor.h
@@ -0,0 +1,20 @@
+// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+#include <vespa/searchlib/fef/featureexecutor.h>
+
+namespace search::tensor { class DirectTensorAttribute; }
+namespace search::features {
+
+class DirectTensorAttributeExecutor : public fef::FeatureExecutor
+{
+public:
+ using DirectTensorAttribute = search::tensor::DirectTensorAttribute;
+ DirectTensorAttributeExecutor(const DirectTensorAttribute &attribute);
+ void execute(uint32_t docId) override;
+private:
+ const DirectTensorAttribute &_attribute;
+};
+
+}