summaryrefslogtreecommitdiffstats
path: root/include/framework/DynamicExtension.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-01-16 13:18:37 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2025-01-16 13:18:37 -0500
commit77589d4cc82b766d2cf16294fab98a57f6579cb4 (patch)
tree0cc136d13c20021e0278b8b2ededf2652c27a84e /include/framework/DynamicExtension.h
parentbac86504220da4c169089a3a1803e0a21f5acbc2 (diff)
downloaddynamic-extension-77589d4cc82b766d2cf16294fab98a57f6579cb4.tar.gz
Additional layout policies + more flexibility in buffer flushing
Diffstat (limited to 'include/framework/DynamicExtension.h')
-rw-r--r--include/framework/DynamicExtension.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h
index c35bb93..5a64243 100644
--- a/include/framework/DynamicExtension.h
+++ b/include/framework/DynamicExtension.h
@@ -249,6 +249,19 @@ public:
}
/**
+ * Get the number of non-empty shards within the index.
+ *
+ * @return The number of non-empty shards within the index
+ */
+ size_t get_shard_count() {
+ auto epoch = get_active_epoch();
+ auto s = epoch->get_structure()->get_shard_count();
+ end_job(epoch);
+
+ return s;
+ }
+
+ /**
* Get the number of bytes of memory allocated across the framework for
* storing records and associated index information (i.e., internal
* ISAM tree nodes). This includes memory that is allocated but