Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgryski/go-simstore
/ functions
Functions
88 in github.com/dgryski/go-simstore
⨍
Functions
88
◇
Types & classes
19
↓ 22 callers
Method
find
(sig uint64, mask uint64, d int)
simstore.go:55
↓ 18 callers
Method
add
(hash uint64)
simstore.go:54
↓ 14 callers
Method
unshuffleList
(sigs []uint64, t int)
simstore6.go:115
↓ 8 callers
Method
Add
(sig, docid uint64)
simstore6.go:4
↓ 6 callers
Method
Search
Search searches the VP-tree for the k nearest neighbours of target. It returns the up to k narest neighbours and the corresponding distances in order
vptree/vptree.go:48
↓ 5 callers
Method
Len
()
vptree/pq.go:5
↓ 5 callers
Method
decompressBlock
(block int)
zstore.go:125
↓ 5 callers
Function
hamming
(a, b uint64)
vptree/vptree.go:16
↓ 5 callers
Function
testAdd
(t *testing.T, s Storage, size, queries, d int)
simstore6_test.go:36
↓ 4 callers
Method
Pop
()
vptree/pq.go:21
↓ 4 callers
Method
add
(p uint64)
zstore.go:30
↓ 4 callers
Function
simhashString
(s string)
simhash/simhash_test.go:10
↓ 4 callers
Method
unshuffleList
(sigs []uint64, t int)
simstore.go:151
↓ 3 callers
Function
Distance
(v1 uint64, v2 uint64)
simhash/simhash.go:43
↓ 3 callers
Function
New3
New3 returns a Store for searching hamming distance <= 3
simstore.go:98
↓ 3 callers
Function
New6
(hashes int, newStore func(hashes int) u64store)
simstore6.go:13
↓ 3 callers
Method
finish
()
zstore.go:34
↓ 3 callers
Function
unique
(ids []uint64)
simstore.go:277
↓ 3 callers
Method
unshuffle
(sig uint64, t int)
simstore.go:138
↓ 2 callers
Method
Bytes
()
simhash/scanners.go:10
↓ 2 callers
Function
CurrentConfig
actual type is *Config CurrentConfig atomically returns the current configuration
simd/main.go:46
↓ 2 callers
Method
Find
(sig uint64)
simstore6.go:5
↓ 2 callers
Method
Finish
()
simstore6.go:6
↓ 2 callers
Function
New
New creates a new VP-tree using the metric and items provided. The metric measures the distance between two items, so that the VP-tree can find the ne
vptree/vptree.go:39
↓ 2 callers
Method
Push
(i interface{})
vptree/pq.go:16
↓ 2 callers
Method
Scan
()
simhash/scanners.go:9
↓ 2 callers
Function
distance
distance returns the hamming distance between v1 and v2
simstore.go:293
↓ 2 callers
Method
finish
()
simstore.go:56
↓ 2 callers
Function
loadConfig
(input string, useStore bool, storeSize int, small bool, compressed bool, useVPTree bool, myNumber int, totalM
simd/main.go:164
↓ 1 callers
Method
Err
()
simhash/scanners.go:11
↓ 1 callers
Function
Hash
Hash returns a simhash value for the document returned by the scanner
simhash/simhash.go:16
↓ 1 callers
Function
New3Small
(hashes int)
simstore.go:239
↓ 1 callers
Method
Top
()
vptree/pq.go:29
↓ 1 callers
Function
UpdateConfig
UpdateConfig atomically swaps the current configuration
simd/main.go:49
↓ 1 callers
Method
blocks
()
zstore.go:40
↓ 1 callers
Method
buildFromPoints
(items []Item)
vptree/vptree.go:74
↓ 1 callers
Function
compareCoordDistSets
This helper function compares two sets of coordinates/distances to make sure they are the same.
vptree/vptree_test.go:10
↓ 1 callers
Method
compress
()
zstore.go:44
↓ 1 callers
Method
enter
()
simstore.go:161
↓ 1 callers
Method
leave
()
simstore.go:162
↓ 1 callers
Function
lineCounter
https://stackoverflow.com/questions/24562942/golang-how-do-i-determine-the-number-of-lines-in-a-file-efficiently
simd/main.go:137
↓ 1 callers
Function
nearestNeighbours
This helper function finds the k nearest neighbours of target in items. It's slower than the VPTree, but its correctness is easy to verify, so we can
vptree/vptree_test.go:32
↓ 1 callers
Method
search
(n *node, tau *float64, target uint64, k int, h *priorityQueue)
vptree/vptree.go:111
↓ 1 callers
Function
searchHandler
(w http.ResponseWriter, r *http.Request)
simd/main.go:313
↓ 1 callers
Function
topkHandler
(w http.ResponseWriter, r *http.Request)
simd/main.go:273
↓ 1 callers
Method
unshuffle
(sig uint64, t int)
simstore6.go:82
Method
Add
Add inserts a signature and document id into the store
simstore.go:111
Method
Add
(sig uint64, docid uint64)
simstore.go:243
Method
Add
Add inserts a signature and document id into the store
simstore6.go:28
Function
BenchmarkDecompress
(b *testing.B)
zstore_test.go:57
Method
Bytes
()
simhash/scanners.go:37
Method
Err
()
simhash/scanners.go:24
Method
Find
Find searches the store for all hashes hamming distance 3 or less from the query signature. It returns the associated list of document ids.
simstore.go:193
Method
Find
(sig uint64)
simstore.go:252
Method
Find
Find searches the store for all hashes hamming distance 6 or less from the query signature. It returns the associated list of document ids.
simstore6.go:130
Method
Finish
Finish prepares the store for searching. This must be called once after all the signatures have been added via Add().
simstore.go:166
Method
Finish
()
simstore.go:269
Method
Len
()
simstore.go:28
Method
Len
()
simstore.go:62
Method
Less
(i, j int)
simstore.go:30
Method
Less
(i int, j int)
simstore.go:63
Method
Less
(i, j int)
vptree/pq.go:7
Function
NewSliceScanner
NewSliceScanner creates a scanner that returns the byte slices in tokens
simhash/scanners.go:20
Function
NewU64Slice
(hashes int)
simstore.go:48
Function
NewZStore
(hashes int)
zstore.go:26
Method
Scan
()
simhash/scanners.go:28
Function
ScanByteTrigrams
(data []byte, atEOF bool)
simhash/scanners.go:41
Method
Swap
(i, j int)
simstore.go:29
Method
Swap
(i int, j int)
simstore.go:64
Method
Swap
(i, j int)
vptree/pq.go:12
Function
TestAdd3
(t *testing.T)
simstore6_test.go:11
Function
TestAdd3Small
(t *testing.T)
simstore6_test.go:16
Function
TestAdd3Z
(t *testing.T)
simstore6_test.go:26
Function
TestAdd6
(t *testing.T)
simstore6_test.go:21
Function
TestAdd6Z
(t *testing.T)
simstore6_test.go:31
Function
TestCompress
(t *testing.T)
zstore_test.go:11
Function
TestDuplicateSignatures
(t *testing.T)
zstore_test.go:81
Function
TestEmpty
This test makes sure vptree's behavior is sane with no input items
vptree/vptree_test.go:64
Function
TestSimHash
(t *testing.T)
simhash/simhash_test.go:17
Function
TestSmall
This test creates a small VPTree and makes sure its search function returns the right results
vptree/vptree_test.go:81
Function
TestUnshuffle
(t *testing.T)
simstore_test.go:8
Function
TestUnshuffle6
(t *testing.T)
simstore_test.go:26
Method
add
(p uint64)
simstore.go:83
Method
find
(sig uint64)
simstore.go:34
Method
find
(sig, mask uint64, d int)
simstore.go:66
Method
find
(sig, mask uint64, d int)
zstore.go:171
Method
finish
()
simstore.go:87
Function
main
()
simd/main.go:51