diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-09 14:23:22 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-09 14:23:22 -0700 |
commit | 9ebfc171b3b966318e4f33f2a856235534235cc7 (patch) | |
tree | 7e8acbbe6b882d3d28047b87ab0283ec4d5fb2e3 /bucket.go | |
parent | Merge pull request #19 from benbjohnson/rebalance (diff) | |
download | dedo-9ebfc171b3b966318e4f33f2a856235534235cc7.tar.gz dedo-9ebfc171b3b966318e4f33f2a856235534235cc7.tar.xz |
Clean up.
Diffstat (limited to 'bucket.go')
-rw-r--r-- | bucket.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 +} |