aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
Diffstat (limited to 'bucket.go')
-rw-r--r--bucket.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/bucket.go b/bucket.go
index 28c570e..fdaadf8 100644
--- a/bucket.go
+++ b/bucket.go
@@ -23,3 +23,17 @@ func (b *Bucket) cursor() *Cursor {
stack: make([]pageElementRef, 0),
}
}
+
+func (b *Bucket) Stat() *Stat {
+ // TODO: Calculate size, depth, page count (by type), entry count, readers, etc.
+ return nil
+}
+
+type Stat struct {
+ PageSize int
+ Depth int
+ BranchPageCount int
+ LeafPageCount int
+ OverflowPageCount int
+ EntryCount int
+}