Commit 2c7078e1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8083e583
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
// //
// node.Entryv() returns [] of (key, child/value). // node.Entryv() returns [] of (key, child/value).
// //
// BTree.FirstBucket() and Bucket.Next() allows to iterate in terms of B⁺ tree nodes. // BTree.FirstBucket() and Bucket.Next() allow to iterate through leaf B⁺ tree nodes.
// //
// -------- // --------
// //
......
...@@ -135,12 +135,12 @@ func (b *Bucket) Entryv() []BucketEntry { ...@@ -135,12 +135,12 @@ func (b *Bucket) Entryv() []BucketEntry {
// ---- node-level iteration ---- // ---- node-level iteration ----
// XXX // FirstBucket returns bucket containing the smallest key in the tree.
func (t *BTree) FirstBucket() *Bucket { func (t *BTree) FirstBucket() *Bucket {
return t.firstbucket return t.firstbucket
} }
// XXX // Next returns tree bucket with next larger keys relative to current bucket.
func (b *Bucket) Next() *Bucket { func (b *Bucket) Next() *Bucket {
return b.next return b.next
} }
...@@ -241,7 +241,7 @@ func (t *BTree) MinKey(ctx context.Context) (_ KEY, ok bool, err error) { ...@@ -241,7 +241,7 @@ func (t *BTree) MinKey(ctx context.Context) (_ KEY, ok bool, err error) {
return 0, false, nil return 0, false, nil
} }
// NOTE -> can also use t.firstBucket // NOTE -> can also use t.firstbucket
for { for {
child := t.data[0].child.(zodb.IPersistent) child := t.data[0].child.(zodb.IPersistent)
t.PDeactivate() t.PDeactivate()
......
...@@ -137,12 +137,12 @@ func (b *IOBucket) Entryv() []IOBucketEntry { ...@@ -137,12 +137,12 @@ func (b *IOBucket) Entryv() []IOBucketEntry {
// ---- node-level iteration ---- // ---- node-level iteration ----
// XXX // FirstBucket returns bucket containing the smallest key in the tree.
func (t *IOBTree) FirstBucket() *IOBucket { func (t *IOBTree) FirstBucket() *IOBucket {
return t.firstbucket return t.firstbucket
} }
// XXX // Next returns tree bucket with next larger keys relative to current bucket.
func (b *IOBucket) Next() *IOBucket { func (b *IOBucket) Next() *IOBucket {
return b.next return b.next
} }
...@@ -243,7 +243,7 @@ func (t *IOBTree) MinKey(ctx context.Context) (_ int32, ok bool, err error) { ...@@ -243,7 +243,7 @@ func (t *IOBTree) MinKey(ctx context.Context) (_ int32, ok bool, err error) {
return 0, false, nil return 0, false, nil
} }
// NOTE -> can also use t.firstBucket // NOTE -> can also use t.firstbucket
for { for {
child := t.data[0].child.(zodb.IPersistent) child := t.data[0].child.(zodb.IPersistent)
t.PDeactivate() t.PDeactivate()
......
...@@ -137,12 +137,12 @@ func (b *LOBucket) Entryv() []LOBucketEntry { ...@@ -137,12 +137,12 @@ func (b *LOBucket) Entryv() []LOBucketEntry {
// ---- node-level iteration ---- // ---- node-level iteration ----
// XXX // FirstBucket returns bucket containing the smallest key in the tree.
func (t *LOBTree) FirstBucket() *LOBucket { func (t *LOBTree) FirstBucket() *LOBucket {
return t.firstbucket return t.firstbucket
} }
// XXX // Next returns tree bucket with next larger keys relative to current bucket.
func (b *LOBucket) Next() *LOBucket { func (b *LOBucket) Next() *LOBucket {
return b.next return b.next
} }
...@@ -243,7 +243,7 @@ func (t *LOBTree) MinKey(ctx context.Context) (_ int64, ok bool, err error) { ...@@ -243,7 +243,7 @@ func (t *LOBTree) MinKey(ctx context.Context) (_ int64, ok bool, err error) {
return 0, false, nil return 0, false, nil
} }
// NOTE -> can also use t.firstBucket // NOTE -> can also use t.firstbucket
for { for {
child := t.data[0].child.(zodb.IPersistent) child := t.data[0].child.(zodb.IPersistent)
t.PDeactivate() t.PDeactivate()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment