aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h
new file mode 100644
index 00000000000..da8ae163fb5
--- /dev/null
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_manager_reconfig.h
@@ -0,0 +1,28 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#pragma once
+
+#include <vespa/searchlib/common/serialnum.h>
+#include <memory>
+#include <optional>
+
+namespace proton {
+
+class AttributeManager;
+class SequentialAttributesInitializer;
+
+/**
+ * Class representing the result of the prepare step of an AttributeManager
+ * reconfig.
+ */
+class AttributeManagerReconfig {
+ std::shared_ptr<AttributeManager> _mgr;
+ std::unique_ptr<SequentialAttributesInitializer> _initializer;
+public:
+ AttributeManagerReconfig(std::shared_ptr<AttributeManager> mgr,
+ std::unique_ptr<SequentialAttributesInitializer> initializer);
+ ~AttributeManagerReconfig();
+ std::shared_ptr<AttributeManager> create(std::optional<uint32_t> docid_limit, std::optional<search::SerialNum> serial_num);
+};
+
+}