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

Function NewFileManager

file_manager.go:24–31  ·  view source on GitHub ↗

NewFileManager will create a NewFileManager object

(rwMode RWMode, maxFdNums int, cleanThreshold float64, segmentSize int64)

Source from the content-addressed store, hash-verified

22
23// NewFileManager will create a NewFileManager object
24func NewFileManager(rwMode RWMode, maxFdNums int, cleanThreshold float64, segmentSize int64) (fm *FileManager) {
25 fm = &FileManager{
26 rwMode: rwMode,
27 fdm: fileio.NewFdm(maxFdNums, cleanThreshold),
28 segmentSize: segmentSize,
29 }
30 return fm
31}
32
33// GetDataFile will return a DataFile Object
34func (fm *FileManager) GetDataFile(path string, capacity int64) (datafile *DataFile, err error) {

Calls 1

NewFdmFunction · 0.92