aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-04-23 13:38:48 +0000
committerTor Egge <Tor.Egge@oath.com>2018-04-23 13:53:39 +0000
commit6aa64a88856f769332476f16610812c004478ff8 (patch)
tree7db48103c3719f2e69cdc7b03ee202b4715b89c7 /searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
parenta4417a32a4e048bbdb2e347307f93de5bca865e1 (diff)
Add shared pointer to document meta store context for referenced
document type to imported attribute vector.
Diffstat (limited to 'searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
index 37969bc1eed..0ba4bc814d5 100644
--- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
@@ -10,13 +10,15 @@ namespace search::attribute {
ImportedAttributeVector::ImportedAttributeVector(
vespalib::stringref name,
std::shared_ptr<ReferenceAttribute> reference_attribute,
- std::shared_ptr<ReadableAttributeVector> target_attribute,
std::shared_ptr<IDocumentMetaStoreContext> document_meta_store,
+ std::shared_ptr<ReadableAttributeVector> target_attribute,
+ std::shared_ptr<const IDocumentMetaStoreContext> target_document_meta_store,
bool use_search_cache)
: _name(name),
_reference_attribute(std::move(reference_attribute)),
- _target_attribute(std::move(target_attribute)),
_document_meta_store(std::move(document_meta_store)),
+ _target_attribute(std::move(target_attribute)),
+ _target_document_meta_store(std::move(target_document_meta_store)),
_search_cache(use_search_cache ? std::make_shared<BitVectorSearchCache>() :
std::shared_ptr<BitVectorSearchCache>())
{
@@ -24,13 +26,15 @@ ImportedAttributeVector::ImportedAttributeVector(
ImportedAttributeVector::ImportedAttributeVector(vespalib::stringref name,
std::shared_ptr<ReferenceAttribute> reference_attribute,
- std::shared_ptr<ReadableAttributeVector> target_attribute,
std::shared_ptr<IDocumentMetaStoreContext> document_meta_store,
+ std::shared_ptr<ReadableAttributeVector> target_attribute,
+ std::shared_ptr<const IDocumentMetaStoreContext> target_document_meta_store,
std::shared_ptr<BitVectorSearchCache> search_cache)
: _name(name),
_reference_attribute(std::move(reference_attribute)),
- _target_attribute(std::move(target_attribute)),
_document_meta_store(std::move(document_meta_store)),
+ _target_attribute(std::move(target_attribute)),
+ _target_document_meta_store(std::move(target_document_meta_store)),
_search_cache(std::move(search_cache))
{
}