summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-09-10 13:36:55 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-09-10 13:36:55 +0000
commit58bd3fe4539fcf80de794bc84c60c7c387637a42 (patch)
treef8372d93a39bd65b96efdd810f4e000240e3b7ce /vespalib
parent5608083ccf31ac994fe0ba090b9325ffcaab74b6 (diff)
Simplify how we iterate the set of unique values when saving an enumerated attribute.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h2
-rw-r--r--vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h1
-rw-r--r--vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.h1
3 files changed, 0 insertions, 4 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h b/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h
index 24aa86ac4d1..f1519e29e1f 100644
--- a/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h
+++ b/vespalib/src/vespa/vespalib/datastore/i_unique_store_dictionary.h
@@ -28,8 +28,6 @@ public:
public:
using UP = std::unique_ptr<ReadSnapshot>;
virtual ~ReadSnapshot() = default;
- // TODO: Remove when all relevant functions have been migrated to this API.
- virtual EntryRef get_frozen_root() const = 0;
virtual size_t count(const EntryComparator& comp) const = 0;
virtual size_t count_in_range(const EntryComparator& low, const EntryComparator& high) const = 0;
virtual void foreach_key(std::function<void(EntryRef)> callback) const = 0;
diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h
index 21bc796b52b..c28ba53d1b7 100644
--- a/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h
+++ b/vespalib/src/vespa/vespalib/datastore/unique_store_dictionary.h
@@ -27,7 +27,6 @@ protected:
public:
ReadSnapshotImpl(FrozenView frozen_view);
- EntryRef get_frozen_root() const override { return _frozen_view.getRoot(); }
size_t count(const EntryComparator& comp) const override;
size_t count_in_range(const EntryComparator& low, const EntryComparator& high) const override;
void foreach_key(std::function<void(EntryRef)> callback) const override;
diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.h b/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.h
index 10dfe0d2221..ebd7b1f02be 100644
--- a/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.h
+++ b/vespalib/src/vespa/vespalib/datastore/unique_store_enumerator.h
@@ -28,7 +28,6 @@ private:
public:
UniqueStoreEnumerator(const IUniqueStoreDictionary &dict, const DataStoreBase &store);
~UniqueStoreEnumerator();
- EntryRef get_frozen_root() const { return _dict_snapshot->get_frozen_root(); }
void enumerateValue(EntryRef ref);
void enumerateValues();
void clear();