diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2017-09-06 16:43:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 16:43:01 +0200 |
commit | f0727265fb2a36c1664beca309a7c9aa83dc41ac (patch) | |
tree | a1381da7b97b483e925045c483f5f35b4f9a0912 /searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h | |
parent | 6904c661f29763762c84f672bca812b3339f912e (diff) |
Revert "Use gid to lid change handler interface directly"
Diffstat (limited to 'searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h index bddd0fa9093..686818c1093 100644 --- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h +++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.h @@ -66,6 +66,21 @@ public: return _target_attribute; } + /** + * Acquire an opaque composite guard that covers both the target attribute and + * the reference attribute. Note that these are not directly accessible via the + * returned guard object itself; it does not expose a valid pointer (i.e. get() will + * return nullptr). + */ + std::unique_ptr<AttributeGuard> acquireGuard() const; + /** + * Acquires a composite guard similar to acquireGuard(), but the target attribute is + * covered by an AttributeEnumGuard instead of a regular AttributeGuard. + * + * The reference attribute is _not_ covered by an enum guard. + */ + std::unique_ptr<AttributeEnumGuard> acquireEnumGuard() const; + /* * Create an imported attribute with a snapshot of lid to lid mapping. */ |