diff options
author | Tor Egge <tegge@oath.com> | 2017-08-18 13:34:25 +0000 |
---|---|---|
committer | Tor Egge <tegge@oath.com> | 2017-08-18 13:43:53 +0000 |
commit | 3cd6a5cc46d8fb48082b40e7a66eb62b49fe6c63 (patch) | |
tree | 4b9b543c27ff7ef4ebf041fc7b1e2593f896b720 /searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h | |
parent | eac90beb5009dbc7c4ae0084f0e78e1d8d2a5fa8 (diff) |
Add ImportedAttributeVectorReadGuard, used to handle imported attributes
via ImportedAttributesContext in a safe manner.
Diffstat (limited to 'searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h index 1a20d395bd3..fe9a0d12d6f 100644 --- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h +++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h @@ -80,7 +80,11 @@ public: */ std::unique_ptr<AttributeEnumGuard> acquireEnumGuard() const; -private: + /* + * Create an imported attribute with a snapshot of lid to lid mapping. + */ + std::unique_ptr<ImportedAttributeVector> makeReadGuard(bool stableEnumGuard) const; +protected: long onSerializeForAscendingSort(DocId doc, void * serTo, long available, const common::BlobConverter * bc) const override; long onSerializeForDescendingSort(DocId doc, void * serTo, long available, |