Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amit-davidson/Building-a-NoSQL-database-from-zero
/ functions
Functions
318 in github.com/amit-davidson/Building-a-NoSQL-database-from-zero
⨍
Functions
318
◇
Types & classes
56
↓ 8 callers
Method
Close
()
Part 7/db.go:28
↓ 8 callers
Method
isLeaf
()
Part 7/node.go:49
↓ 8 callers
Method
isLeaf
()
Part 5/node.go:48
↓ 8 callers
Method
isLeaf
()
Part 6/node.go:49
↓ 7 callers
Method
getNode
(pageNum pgnum)
Part 7/node.go:63
↓ 7 callers
Method
getNode
(pageNum pgnum)
Part 5/node.go:63
↓ 7 callers
Method
getNode
(pageNum pgnum)
Part 6/node.go:63
↓ 6 callers
Method
Put
Put adds a key to the tree. It finds the correct node and the insertion index and adds the item. When performing the search, the ancestors are returne
Part 5/collection.go:23
↓ 6 callers
Method
Put
Put adds a key to the tree. It finds the correct node and the insertion index and adds the item. When performing the search, the ancestors are returne
Part 4/collection.go:23
↓ 5 callers
Method
allocateEmptyPage
()
Part 2/dal.go:85
↓ 5 callers
Method
getNode
(pageNum pgnum)
Part 7/tx.go:36
↓ 5 callers
Method
getNode
(pageNum pgnum)
Part 5/dal.go:176
↓ 5 callers
Method
getNode
(pageNum pgnum)
Part 6/tx.go:36
↓ 5 callers
Method
writeNode
(node *Node)
Part 7/tx.go:49
↓ 5 callers
Method
writeNodes
(nodes ...*Node)
Part 7/node.go:57
↓ 5 callers
Method
writeNodes
(nodes ...*Node)
Part 5/node.go:57
↓ 5 callers
Method
writeNodes
(nodes ...*Node)
Part 6/node.go:57
↓ 4 callers
Method
allocateEmptyPage
()
Part 7/dal.go:144
↓ 4 callers
Method
allocateEmptyPage
()
Part 5/dal.go:144
↓ 4 callers
Method
allocateEmptyPage
()
Part 6/dal.go:144
↓ 4 callers
Method
allocateEmptyPage
()
Part 4/dal.go:144
↓ 4 callers
Method
allocateEmptyPage
()
Part 3/dal.go:85
↓ 4 callers
Method
deserialize
(buf []byte)
Part 7/node.go:156
↓ 4 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 2/freelist.go:27
↓ 4 callers
Method
getNode
(pageNum pgnum)
Part 4/dal.go:176
↓ 4 callers
Method
newNode
(items []*Item, childNodes []pgnum)
Part 7/tx.go:25
↓ 4 callers
Method
newNode
(items []*Item, childNodes []pgnum)
Part 5/dal.go:167
↓ 4 callers
Method
newNode
(items []*Item, childNodes []pgnum)
Part 6/tx.go:25
↓ 4 callers
Method
newNode
(items []*Item, childNodes []pgnum)
Part 4/dal.go:167
↓ 4 callers
Method
serialize
(buf []byte)
Part 7/node.go:86
↓ 4 callers
Method
writeNode
(node *Node)
Part 7/node.go:53
↓ 4 callers
Method
writeNode
(node *Node)
Part 5/node.go:52
↓ 4 callers
Method
writeNode
(n *Node)
Part 5/dal.go:188
↓ 4 callers
Method
writeNode
(node *Node)
Part 6/node.go:53
↓ 4 callers
Method
writeNode
(node *Node)
Part 6/tx.go:49
↓ 4 callers
Method
writeNode
(n *Node)
Part 4/dal.go:188
↓ 4 callers
Method
writePage
(p *page)
Part 2/dal.go:102
↓ 3 callers
Function
NewEmptyNode
()
Part 7/node.go:22
↓ 3 callers
Method
close
()
Part 7/dal.go:132
↓ 3 callers
Method
close
()
Part 2/dal.go:73
↓ 3 callers
Method
close
()
Part 5/dal.go:132
↓ 3 callers
Method
close
()
Part 6/dal.go:132
↓ 3 callers
Method
close
()
Part 4/dal.go:132
↓ 3 callers
Method
close
()
Part 3/dal.go:73
↓ 3 callers
Method
deserialize
(buf []byte)
Part 5/node.go:156
↓ 3 callers
Method
deserialize
(buf []byte)
Part 6/node.go:156
↓ 3 callers
Method
deserialize
(buf []byte)
Part 4/node.go:156
↓ 3 callers
Method
deserialize
(buf []byte)
Part 3/node.go:121
↓ 3 callers
Method
findKey
findKey searches for a key inside the tree. Once the key is found, the parent node and the correct index are returned so the key itself can be accesse
Part 7/node.go:230
↓ 3 callers
Method
findKey
findKey searches for a key inside the tree. Once the key is found, the parent node and the correct index are returned so the key itself can be accesse
Part 5/node.go:230
↓ 3 callers
Method
findKey
findKey searches for a key inside the tree. Once the key is found, the parent node and the correct index are returned so the key itself can be accesse
Part 6/node.go:230
↓ 3 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 7/freelist.go:27
↓ 3 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 5/freelist.go:27
↓ 3 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 6/freelist.go:27
↓ 3 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 4/freelist.go:27
↓ 3 callers
Method
getRootCollection
()
Part 7/tx.go:102
↓ 3 callers
Method
isLeaf
()
Part 4/node.go:48
↓ 3 callers
Function
newEmptyCollection
()
Part 7/collection.go:25
↓ 3 callers
Function
newItem
(key []byte, value []byte)
Part 7/node.go:34
↓ 3 callers
Method
readPage
(pageNum pgnum)
Part 7/dal.go:150
↓ 3 callers
Method
readPage
(pageNum pgnum)
Part 5/dal.go:150
↓ 3 callers
Method
readPage
(pageNum pgnum)
Part 6/dal.go:150
↓ 3 callers
Method
readPage
(pageNum pgnum)
Part 4/dal.go:150
↓ 3 callers
Method
readPage
(pageNum pgnum)
Part 3/dal.go:124
↓ 3 callers
Method
serialize
(buf []byte)
Part 5/node.go:86
↓ 3 callers
Method
serialize
(buf []byte)
Part 6/node.go:86
↓ 3 callers
Method
serialize
(buf []byte)
Part 4/node.go:86
↓ 3 callers
Method
serialize
(buf []byte)
Part 3/node.go:51
↓ 3 callers
Method
writeFreelist
()
Part 2/dal.go:119
↓ 3 callers
Method
writeNode
(node *Node)
Part 4/node.go:52
↓ 3 callers
Method
writePage
(p *page)
Part 7/dal.go:161
↓ 3 callers
Method
writePage
(p *page)
Part 5/dal.go:161
↓ 3 callers
Method
writePage
(p *page)
Part 6/dal.go:161
↓ 3 callers
Method
writePage
(p *page)
Part 4/dal.go:161
↓ 3 callers
Method
writePage
(p *page)
Part 3/dal.go:135
↓ 2 callers
Method
Commit
()
Part 7/tx.go:74
↓ 2 callers
Method
Find
Find Returns an item according based on the given key by performing a binary search.
Part 7/collection.go:133
↓ 2 callers
Method
Find
Find Returns an item according based on the given key by performing a binary search.
Part 5/collection.go:92
↓ 2 callers
Function
NewEmptyNode
()
Part 5/node.go:21
↓ 2 callers
Function
NewEmptyNode
()
Part 6/node.go:22
↓ 2 callers
Function
NewEmptyNode
()
Part 4/node.go:21
↓ 2 callers
Function
Open
(path string, options *Options)
Part 7/db.go:13
↓ 2 callers
Method
Put
Put adds a key to the tree. It finds the correct node and the insertion index and adds the item. When performing the search, the ancestors are returne
Part 7/collection.go:66
↓ 2 callers
Method
addItem
(item *Item, insertionIndex int)
Part 7/node.go:279
↓ 2 callers
Method
addItem
(item *Item, insertionIndex int)
Part 5/node.go:279
↓ 2 callers
Method
addItem
(item *Item, insertionIndex int)
Part 6/node.go:279
↓ 2 callers
Method
addItem
(item *Item, insertionIndex int)
Part 4/node.go:279
↓ 2 callers
Method
allocateEmptyPage
()
Part 1/dal.go:47
↓ 2 callers
Method
canSpareAnElement
canSpareAnElement checks if the node size is big enough to populate a page after giving away one item.
Part 7/node.go:73
↓ 2 callers
Method
canSpareAnElement
canSpareAnElement checks if the node size is big enough to populate a page after giving away one item.
Part 5/node.go:73
↓ 2 callers
Method
canSpareAnElement
canSpareAnElement checks if the node size is big enough to populate a page after giving away one item.
Part 6/node.go:73
↓ 2 callers
Method
deleteNode
(node *Node)
Part 7/tx.go:55
↓ 2 callers
Method
deleteNode
(node *Node)
Part 6/tx.go:55
↓ 2 callers
Method
deserialize
(buf []byte)
Part 2/meta.go:25
↓ 2 callers
Method
elementSize
elementSize returns the size of a key-value-childNode triplet at a given index. If the node is a leaf, then the size of a key-value pair is returned.
Part 7/node.go:202
↓ 2 callers
Method
elementSize
elementSize returns the size of a key-value-childNode triplet at a given index. If the node is a leaf, then the size of a key-value pair is returned.
Part 5/node.go:202
↓ 2 callers
Method
elementSize
elementSize returns the size of a key-value-childNode triplet at a given index. If the node is a leaf, then the size of a key-value pair is returned.
Part 6/node.go:202
↓ 2 callers
Method
elementSize
elementSize returns the size of a key-value-childNode triplet at a given index. If the node is a leaf, then the size of a key-value pair is returned.
Part 4/node.go:202
↓ 2 callers
Method
findKey
findKey searches for a key inside the tree. Once the key is found, the parent node and the correct index are returned so the key itself can be accesse
Part 4/node.go:230
↓ 2 callers
Method
getNextPage
getNextPage returns page ids for writing New page ids are first given from the releasedPageIDs to avoid growing the file. If it's empty, then maxPage
Part 3/freelist.go:27
next →
1–100 of 318, ranked by callers