aboutsummaryrefslogtreecommitdiff
path: root/bucket.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-02-09 14:23:22 -0700
committerBen Johnson <benbjohnson@yahoo.com>2014-02-09 14:23:22 -0700
commit9ebfc171b3b966318e4f33f2a856235534235cc7 (patch)
tree7e8acbbe6b882d3d28047b87ab0283ec4d5fb2e3 /bucket.go
parentMerge pull request #19 from benbjohnson/rebalance (diff)
downloaddedo-9ebfc171b3b966318e4f33f2a856235534235cc7.tar.gz
dedo-9ebfc171b3b966318e4f33f2a856235534235cc7.tar.xz
Clean up.
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
+}