diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-01-29 11:26:48 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-01-29 12:22:05 +0000 |
commit | bb74faa5f2e56c930db1ec06ebf912e5b316c087 (patch) | |
tree | 42860f1ae5821dea25b900270a5aa1721e4618e7 /searchsummary | |
parent | b525ae9930ce37017eec664fbc4a0e12258c3db0 (diff) |
Add ReadableAttributeVector accessor to IAttributeManager
Provides a unified interface for fetching both regular as well as
imported attributes. Exposing `ReadableAttributeVector` instead of
raw `AttributeVector` instances enforces that all access is done via
appropriate acquired read guards.
Refactor document selection processing code to use the new interface
in order to prepare for imported field support in selections.
Diffstat (limited to 'searchsummary')
-rw-r--r-- | searchsummary/src/tests/docsummary/positionsdfw_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searchsummary/src/tests/docsummary/positionsdfw_test.cpp b/searchsummary/src/tests/docsummary/positionsdfw_test.cpp index b161958fc43..4cad98a8e01 100644 --- a/searchsummary/src/tests/docsummary/positionsdfw_test.cpp +++ b/searchsummary/src/tests/docsummary/positionsdfw_test.cpp @@ -100,6 +100,10 @@ public: IAttributeContext::UP createContext() const override { return IAttributeContext::UP(new MyAttributeContext(_attr)); } + + std::shared_ptr<attribute::ReadableAttributeVector> readable_attribute_vector(const string&) const override { + LOG_ABORT("should not be reached"); + } }; struct MyGetDocsumsStateCallback : GetDocsumsStateCallback { |