Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
27120bd7
Commit
27120bd7
authored
Aug 07, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a4507ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
go/zodb/btree/btree.go
go/zodb/btree/btree.go
+10
-2
No files found.
go/zodb/btree/btree.go
View file @
27120bd7
...
...
@@ -29,11 +29,15 @@ import (
pickle
"github.com/kisielk/og-rek"
)
// KEY is the type for BTree keys.
//
// XXX -> template
type
KEY
int64
// Bucket mimics ?OBucket from btree/py, with ? being any integer.
// Bucket is a leaf node of a B⁺ tree.
//
// It mimics ?OBucket from btree/py, with ? being any integer.
//
// py description:
//
...
...
@@ -51,12 +55,16 @@ type Bucket struct {
}
// _BTreeItem mimics BTreeItem from btree/py.
//
// XXX export for BTree.Children?
type
_BTreeItem
struct
{
key
KEY
child
interface
{}
// BTree or Bucket
}
// BTree mimics ?OBTree from btree/py, with ? being any integer.
// BTree is a non-leaf node of a B⁺ tree.
//
// It mimics ?OBTree from btree/py, with ? being any integer.
//
// See https://github.com/zopefoundation/BTrees/blob/4.5.0-1-gc8bf24e/BTrees/Development.txt#L198
// for details.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment