Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bnclabs/gostore
/ functions
Functions
1,140 in github.com/bnclabs/gostore
⨍
Functions
1,140
◇
Types & classes
71
↓ 5 callers
Method
Stats
Stats return a map of statistics.
lib/avgint.go:85
↓ 5 callers
Method
View
View starts a read-only transaction. Other than that it is similar to BeginTxn. All view transactions should be aborted.
llrb/mvcc.go:1150
↓ 5 callers
Method
builddiskstore
( logprefix string, level, version int, sha, flushunix string, settstodisk s.Settings, itere api.EntryItera
bogn/bogn.go:1224
↓ 5 callers
Method
eq
(Key a, Key b)
papers/Sedgewick-RedBlackBST.java:225
↓ 5 callers
Method
footprint
()
bubt/blockindex.go:7
↓ 5 callers
Method
getkey
()
llrb/node.go:74
↓ 5 callers
Method
getkey
(nd *Llrbnode, k []byte)
llrb/mvcc.go:1181
↓ 5 callers
Method
isbounded
(index int)
bubt/snapzblock.go:117
↓ 5 callers
Method
isdirty
()
bogn/snapshot.go:116
↓ 5 callers
Method
length
()
bubt/blockindex.go:15
↓ 5 callers
Method
less
(Key a, Key b)
papers/Sedgewick-RedBlackBST.java:224
↓ 5 callers
Function
makepaths
()
bogn/init_test.go:33
↓ 5 callers
Function
makescanbuf
()
llrb/scanner.go:16
↓ 5 callers
Function
newFlistPool
()
malloc/pool_flist.go:161
↓ 5 callers
Function
newz
zblock represents the leaf node in bubt tree, can be in a separate file, shape of block is: n_entries uint32 - 4-byte count of number entries in th
bubt/buildzblock.go:31
↓ 5 callers
Method
nextfootprint
()
bubt/blockindex.go:11
↓ 5 callers
Function
openfile
(filename string, ismmap bool)
bubt/util.go:31
↓ 5 callers
Method
readsnapshot
()
llrb/mvcc.go:1502
↓ 5 callers
Method
rotateright
(nd *Llrbnode)
llrb/llrb.go:1025
↓ 5 callers
Method
rotateright
( nd *Llrbnode, reclaim []*Llrbnode)
llrb/mvcc.go:1358
↓ 5 callers
Method
setdeleted
()
llrb/node.go:163
↓ 5 callers
Method
setvaluelen
(keylen uint64)
bubt/zentry.go:74
↓ 5 callers
Method
size
()
papers/Sedgewick-RedBlackBST.java:37
↓ 5 callers
Method
stats
()
llrb/mvcc.go:323
↓ 4 callers
Method
Allocslab
Allocslab allocate a chunk from slab. Use this only if slab size is known to exist with mallocer.
api/alloc.go:16
↓ 4 callers
Function
Bytes2str
Bytes2str morph byte slice to a string without copying. Note that the source byte-slice should remain in scope as long as string is in scope.
api/util.go:30
↓ 4 callers
Method
Chunklen
Chunklen return the length of the chunk usable by application.
api/alloc.go:22
↓ 4 callers
Method
Clearbit
Clearbit clear the nth bit and return the new byte.
lib/bit8.go:26
↓ 4 callers
Method
Footprint
Footprint return the size occupied by this instance on disk.
bubt/snapshot.go:239
↓ 4 callers
Method
Min
Min return minimum value from sample.
lib/avgint.go:32
↓ 4 callers
Function
New
New create a new instance of multi-process rwmutex.
flock/mutex_unix.go:15
↓ 4 callers
Method
Release
Release implement api.Mallocer{} interface.
malloc/arena.go:131
↓ 4 callers
Method
Release
Release arena, all its pools and resources.
api/alloc.go:28
↓ 4 callers
Function
ResponseError
ResponseError for gen-server design pattern. Return err is not nil, else type-cast idx-th element in response to error and return the same.
lib/util.go:84
↓ 4 callers
Method
Utilization
Utilization map of slab-size and its utilization
api/alloc.go:34
↓ 4 callers
Method
addamplification
(ndisk api.Index)
bogn/bogn.go:1852
↓ 4 callers
Method
checkallocated
---- local functions can be costly operation.
malloc/.pool_fbit.go:109
↓ 4 callers
Method
cleardeleted
()
llrb/node.go:168
↓ 4 callers
Method
cleardeleted
()
bubt/zentry.go:27
↓ 4 callers
Method
cloneifdirty
(nd *Llrbnode)
llrb/mvcc.go:1439
↓ 4 callers
Method
clonenode
(nd *Llrbnode)
llrb/llrb.go:124
↓ 4 callers
Method
freenode
(nd *Llrbnode)
llrb/llrb.go:114
↓ 4 callers
Method
get
( key, value []byte)
llrb/llrb.go:609
↓ 4 callers
Method
getdiskpaths
()
bogn/bogn.go:1639
↓ 4 callers
Method
gethdr
---- header fields
llrb/node.go:45
↓ 4 callers
Method
height
()
papers/Sedgewick-RedBlackBST.java:52
↓ 4 callers
Method
isdeleted
()
bubt/zentry.go:33
↓ 4 callers
Method
isvlog
()
bubt/zentry.go:49
↓ 4 callers
Function
keystuff
---- local methods.
api/pkey.go:316
↓ 4 callers
Method
logstore
(index api.Index)
bogn/bogn.go:1619
↓ 4 callers
Function
makepaths1
()
bubt/build_test.go:1483
↓ 4 callers
Function
makezsnap
(tb testing.TB)
bubt/snapzblock_test.go:61
↓ 4 callers
Method
memlevelname
(level string, version int)
bogn/bogn.go:807
↓ 4 callers
Method
min
()
papers/Sedgewick-RedBlackBST.java:78
↓ 4 callers
Method
mwseqno
()
bogn/snapshot.go:95
↓ 4 callers
Method
newmemstore
---- local methods
bogn/bogn.go:1192
↓ 4 callers
Method
nextdiskversion
(level int)
bogn/bogn.go:1614
↓ 4 callers
Method
preparewrite
()
llrb/scanner.go:27
↓ 4 callers
Method
puttxn
(txn *Txn)
llrb/common.go:165
↓ 4 callers
Function
reduceitere
(scans []api.EntryIterator)
bogn/snapshot.go:455
↓ 4 callers
Method
rlock
()
llrb/mvcc.go:273
↓ 4 callers
Method
runlock
()
llrb/mvcc.go:278
↓ 4 callers
Method
seqno
()
bubt/zentry.go:60
↓ 4 callers
Method
setkeylen
(keylen uint64)
bubt/zentry.go:65
↓ 4 callers
Method
setreclaim
()
llrb/node.go:180
↓ 4 callers
Method
setroot
should be called with the write-lock.
llrb/mvcc.go:126
↓ 4 callers
Method
startscan
(key []byte, sb *scanbuf, leseqno uint64)
llrb/llrb.go:709
↓ 4 callers
Method
startscan
TODO: can we instead to the snapshot and avoid rlock ?
llrb/mvcc.go:1278
↓ 4 callers
Method
stats
()
llrb/llrb.go:788
↓ 4 callers
Method
valuelen
()
bubt/zentry.go:79
↓ 3 callers
Method
Clone
Clone copies the entire instance.
lib/avgint.go:79
↓ 3 callers
Method
Clone
Clone llrb instance and return the clone.
llrb/llrb.go:924
↓ 3 callers
Function
FailsafeRequest
FailsafeRequest for gen-server design pattern. While posting a request to reqch channel, if channel is full but gen-server has exited or crashed, prev
lib/util.go:47
↓ 3 callers
Function
Fixbuffer
Fixbuffer will expand the buffer if its capacity is less than size and return the buffer of size length.
lib/util.go:130
↓ 3 callers
Function
Fixbuffer
Fixbuffer will expand the buffer if its capacity is less than size and return the buffer of size length.
api/util.go:21
↓ 3 callers
Method
Getseqno
Getseqno return current seqno on this tree.
llrb/llrb.go:196
↓ 3 callers
Method
Isblack
Isblack for llrb node.
api/pkey.go:274
↓ 3 callers
Function
Memcpy
Memcpy copy memory block of length `ln` from `src` to `dst`. This function is useful if memory block is obtained outside golang runtime.
lib/util.go:31
↓ 3 callers
Method
Setseqno
---- Exported Write methods Setseqno can be called immediately after creating the MVCC instance. All futher mutating APIs will start counting seqno fr
llrb/mvcc.go:659
↓ 3 callers
Function
SuitableSlab
SuitableSlab return an optimal block-size for required size. Argument slabs should be sorted array of int64.
malloc/util.go:8
↓ 3 callers
Method
Validate
Validate active bogn levels.
bogn/bogn.go:968
↓ 3 callers
Method
Value
Value return the value byte-slice for this entry.
llrb/node.go:196
↓ 3 callers
Method
Writemetadata
(metadata []byte)
bubt/build.go:501
↓ 3 callers
Method
close
()
bubt/go_buildflush.go:73
↓ 3 callers
Function
closereadat
(rd io.ReaderAt)
bubt/util.go:46
↓ 3 callers
Method
compareat
(i int, key []byte)
bubt/snapmblock.go:47
↓ 3 callers
Method
fixUp
(Node h)
papers/Sedgewick-RedBlackBST.java:285
↓ 3 callers
Method
get
(key []byte)
llrb/txn.go:230
↓ 3 callers
Method
getaccess
()
llrb/node.go:64
↓ 3 callers
Method
getappdata
(disk api.Index)
bogn/bogn.go:1658
↓ 3 callers
Method
getmask
()
api/pkey.go:133
↓ 3 callers
Method
getonsnap
---- local methods
llrb/txn.go:164
↓ 3 callers
Method
getreadbuffer
(msize, zsize, vsize int64)
bubt/readerpool.go:30
↓ 3 callers
Method
getvbno
()
api/pkey.go:141
↓ 3 callers
Method
getview
---- local methods
bubt/snapshot.go:703
↓ 3 callers
Method
indexvaluelogs
return the oldest snapshots value-logs.
bogn/bogn.go:1766
↓ 3 callers
Method
isreclaim
()
llrb/node.go:190
↓ 3 callers
Function
keyunstuff
(in []byte, out []byte)
api/pkey.go:331
↓ 3 callers
Function
makesettings
()
bogn/init_test.go:41
↓ 3 callers
Method
newnode
(k, v []byte)
llrb/mvcc.go:165
← previous
next →
201–300 of 1,140, ranked by callers