summaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp b/searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp
new file mode 100644
index 00000000000..fd58cb6595e
--- /dev/null
+++ b/searchlib/src/vespa/searchlib/memoryindex/invert_context.cpp
@@ -0,0 +1,21 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "invert_context.h"
+
+namespace search::memoryindex {
+
+InvertContext::InvertContext(vespalib::ISequencedTaskExecutor::ExecutorId id)
+ : BundledFieldsContext(id),
+ _pushers()
+{
+}
+
+InvertContext::~InvertContext() = default;
+
+void
+InvertContext::add_pusher(uint32_t pusher_id)
+{
+ _pushers.emplace_back(pusher_id);
+}
+
+}