NewFileManager will create a NewFileManager object
(rwMode RWMode, maxFdNums int, cleanThreshold float64, segmentSize int64)
| 22 | |
| 23 | // NewFileManager will create a NewFileManager object |
| 24 | func 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 |
| 34 | func (fm *FileManager) GetDataFile(path string, capacity int64) (datafile *DataFile, err error) { |