MCPcopy
hub / github.com/lindb/lindb / Load

Method Load

kv/version/snapshot.go:38–38  ·  view source on GitHub ↗

Load loads value by key, if exist invoke loader function.

(key uint32, loader func(value []byte) error)

Source from the content-addressed store, hash-verified

36 FindReaders(key uint32) ([]table.Reader, error)
37 // Load loads value by key, if exist invoke loader function.
38 Load(key uint32, loader func(value []byte) error) error
39 // GetReader returns file reader
40 GetReader(fileNumber table.FileNumber) (table.Reader, error)
41 // Close releases related resources

Callers 15

needRollupMethod · 0.65
newStoreFunction · 0.65
CreateFamilyMethod · 0.65
TestStore_NewFunction · 0.65
IsRunningMethod · 0.65
CompactMethod · 0.65
needCompactMethod · 0.65
ManifestFileNumberMethod · 0.65
CommitFamilyEditLogMethod · 0.65
initJournalMethod · 0.65
createStoreSnapshotMethod · 0.65
TestVersion_CloneFunction · 0.65

Implementers 1

snapshotkv/version/snapshot.go

Calls

no outgoing calls

Tested by 6

TestStore_NewFunction · 0.52
TestVersion_CloneFunction · 0.52
TestVersionIDFunction · 0.52
TestCommitFamilyEditLogFunction · 0.52
TestSnapshot_LoadFunction · 0.52