summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-11-09 11:00:44 +0100
committerTor Egge <Tor.Egge@online.no>2022-11-09 11:00:44 +0100
commit13be5ec166cf74c9cffb6a26d29aa112f4141a37 (patch)
treeefea2ca5ac14fc6802f257ac8a351960907b43bb /vespalib
parent30a676fb89f28a618f0dc2c0752cde8c29bf320c (diff)
Add HnswSimpleNode.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/array_store.h3
-rw-r--r--vespalib/src/vespa/vespalib/datastore/array_store.hpp7
2 files changed, 10 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/array_store.h b/vespalib/src/vespa/vespalib/datastore/array_store.h
index b847f3a5985..4c7f15d78e4 100644
--- a/vespalib/src/vespa/vespalib/datastore/array_store.h
+++ b/vespalib/src/vespa/vespalib/datastore/array_store.h
@@ -107,6 +107,9 @@ public:
void remove(EntryRef ref);
EntryRef move_on_compact(EntryRef ref) override;
ICompactionContext::UP compactWorst(CompactionSpec compaction_spec, const CompactionStrategy& compaction_strategy);
+ // Use this if references to array store is not an array of AtomicEntryRef
+ std::unique_ptr<CompactingBuffers> start_compact_worst_buffers(CompactionSpec compaction_spec, const CompactionStrategy &compaction_strategy);
+
vespalib::MemoryUsage getMemoryUsage() const { return _store.getMemoryUsage(); }
/**
diff --git a/vespalib/src/vespa/vespalib/datastore/array_store.hpp b/vespalib/src/vespa/vespalib/datastore/array_store.hpp
index 95f4a3c4155..cf158686f01 100644
--- a/vespalib/src/vespa/vespalib/datastore/array_store.hpp
+++ b/vespalib/src/vespa/vespalib/datastore/array_store.hpp
@@ -162,6 +162,13 @@ ArrayStore<EntryT, RefT, TypeMapperT>::compactWorst(CompactionSpec compaction_sp
}
template <typename EntryT, typename RefT, typename TypeMapperT>
+std::unique_ptr<CompactingBuffers>
+ArrayStore<EntryT, RefT, TypeMapperT>::start_compact_worst_buffers(CompactionSpec compaction_spec, const CompactionStrategy &compaction_strategy)
+{
+ return _store.start_compact_worst_buffers(compaction_spec, compaction_strategy);
+}
+
+template <typename EntryT, typename RefT, typename TypeMapperT>
vespalib::AddressSpace
ArrayStore<EntryT, RefT, TypeMapperT>::addressSpaceUsage() const
{