MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / GetDataFileByID

Method GetDataFileByID

file_manager.go:69–72  ·  view source on GitHub ↗
(dir string, fileID int64, capacity int64)

Source from the content-addressed store, hash-verified

67}
68
69func (fm *FileManager) GetDataFileByID(dir string, fileID int64, capacity int64) (*DataFile, error) {
70 path := getDataPath(fileID, dir)
71 return fm.GetDataFile(path, capacity)
72}
73
74// GetFileRWManager will return a FileIORWManager Object
75func (fm *FileManager) GetFileRWManager(path string, capacity int64, segmentSize int64, readOnly bool) (*fileio.FileIORWManager, error) {

Callers 1

newOutputMethod · 0.80

Calls 2

GetDataFileMethod · 0.95
getDataPathFunction · 0.85

Tested by

no test coverage detected