diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2021-03-29 15:34:42 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2021-03-29 15:42:46 +0200 |
commit | 5ce50ff96509d59a90908aef9ecc0171a9f6f9e3 (patch) | |
tree | 14b88fc10425dbc45e01647287189fd2bdce0b2d /searchlib | |
parent | e3c0d849f717dba29a63558d29fbf5d7b5a7daaa (diff) |
Factor out ReadSnapshot from UniqueStoreDictionary.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/enumhintsearchcontext.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/enumhintsearchcontext.h b/searchlib/src/vespa/searchlib/attribute/enumhintsearchcontext.h index f649754e0fe..af64f17934d 100644 --- a/searchlib/src/vespa/searchlib/attribute/enumhintsearchcontext.h +++ b/searchlib/src/vespa/searchlib/attribute/enumhintsearchcontext.h @@ -6,7 +6,10 @@ #include "ipostinglistsearchcontext.h" #include <vespa/searchlib/queryeval/searchiterator.h> -namespace vespalib::datastore { class EntryComparator; } +namespace vespalib::datastore { +class EntryComparator; +class IUniqueStoreDictionaryReadSnapshot; +} namespace search::attribute { @@ -17,7 +20,7 @@ namespace search::attribute { class EnumHintSearchContext : public IPostingListSearchContext { - const IEnumStoreDictionary::ReadSnapshot::UP _dict_snapshot; + const std::unique_ptr<vespalib::datastore::IUniqueStoreDictionaryReadSnapshot> _dict_snapshot; uint32_t _uniqueValues; uint32_t _docIdLimit; uint64_t _numValues; // attr.getStatus().getNumValues(); |