Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brunocalza/buffer-pool-manager
/ functions
Functions
48 in github.com/brunocalza/buffer-pool-manager
⨍
Functions
48
◇
Types & classes
12
↓ 10 callers
Method
insert
(key interface{}, value interface{})
circular_list.go:39
↓ 9 callers
Method
Unpin
Unpin unpins a frame, indicating that it can now be victimized
clock_replacer.go:38
↓ 7 callers
Method
Victim
Victim removes the victim frame as defined by the replacement policy
clock_replacer.go:13
↓ 6 callers
Function
NewResponse
NewResponse creates a response for web server given a buffer pool manager
buffer_pool_manager_presenter.go:53
↓ 6 callers
Function
renderBufferPool
(pagesTable, maxPoolSize, pinCount)
web/src/index.js:18
↓ 6 callers
Function
renderClockReplacer
(clockReplacer)
web/src/index.js:90
↓ 6 callers
Function
renderDisk
(pagesInDisk, maxDiskNumPages)
web/src/index.js:59
↓ 4 callers
Method
Pin
Pin pins a frame, indicating that it should not be victimized until it is unpinned
clock_replacer.go:48
↓ 4 callers
Method
find
(key interface{})
circular_list.go:22
↓ 3 callers
Method
Size
Size returns the size of the clock
clock_replacer.go:62
↓ 3 callers
Method
WritePage
(*Page)
disk_manager.go:9
↓ 3 callers
Function
newCircularList
(maxSize int)
circular_list.go:118
↓ 2 callers
Method
DecPinCount
DecPinCount decrements pin count
page.go:27
↓ 2 callers
Method
FlushPage
FlushPage Flushes the target page to disk.
buffer_pool_manager.go:81
↓ 2 callers
Function
NewClockReplacer
NewClockReplacer instantiates a new clock replacer
clock_replacer.go:67
↓ 2 callers
Method
getFrameID
()
buffer_pool_manager.go:157
↓ 2 callers
Method
hasKey
(key interface{})
circular_list.go:35
↓ 2 callers
Method
remove
(key interface{})
circular_list.go:76
↓ 1 callers
Method
AllocatePage
()
disk_manager.go:10
↓ 1 callers
Method
DeallocatePage
(PageID)
disk_manager.go:11
↓ 1 callers
Method
DeletePage
DeletePage deletes a page from the buffer pool.
buffer_pool_manager.go:128
↓ 1 callers
Method
FetchPage
FetchPage fetches the requested page from the buffer pool.
buffer_pool_manager.go:20
↓ 1 callers
Method
FlushAllpages
FlushAllpages flushes all the pages in the buffer pool to disk.
buffer_pool_manager.go:151
↓ 1 callers
Method
ID
ID retunds the page id
page.go:22
↓ 1 callers
Function
NewBufferPoolManager
NewBufferPoolManager returns a empty buffer pool manager
buffer_pool_manager.go:169
↓ 1 callers
Function
NewDiskManagerMock
NewDiskManagerMock returns a in-memory mock of disk manager
disk_manager_mock.go:44
↓ 1 callers
Method
NewPage
NewPage allocates a new page in the buffer pool with the disk manager help
buffer_pool_manager.go:96
↓ 1 callers
Method
PinCount
PinCount retunds the pin count
page.go:17
↓ 1 callers
Method
ReadPage
(PageID)
disk_manager.go:8
↓ 1 callers
Method
UnpinPage
UnpinPage unpins the target page from the buffer pool.
buffer_pool_manager.go:59
↓ 1 callers
Function
deletePage
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:46
↓ 1 callers
Function
fetchPage
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:84
↓ 1 callers
Function
flushAll
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:103
↓ 1 callers
Function
flushPage
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:27
↓ 1 callers
Function
getClockReplacerRepresentation
(clockReplacer *ClockReplacer)
buffer_pool_manager_presenter.go:27
↓ 1 callers
Function
newPage
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:12
↓ 1 callers
Function
pagesInDisk
(diskManager DiskManager)
buffer_pool_manager_presenter.go:43
↓ 1 callers
Function
unpinPage
(bufferPool *bpm.BufferPoolManager)
cmd/server/main.go:65
Method
AllocatePage
AllocatePage allocates one more page
disk_manager_mock.go:29
Method
DeallocatePage
DeallocatePage removes page from disk
disk_manager_mock.go:39
Method
ReadPage
ReadPage reads a page from pages
disk_manager_mock.go:14
Function
TestHasKey
(t *testing.T)
circular_list_test.go:8
Function
TestSample
(t *testing.T)
clock_replacer_test.go:7
Function
TestSize
(t *testing.T)
circular_list_test.go:38
Method
WritePage
WritePage writes a page in memory to pages
disk_manager_mock.go:23
Method
isFull
()
circular_list.go:103
Function
main
()
cmd/server/main.go:118
Method
print
()
circular_list.go:107