https://github.com/codingbeard/cbindex
https://github.com/codingbeard/cbindex
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/codingbeard/cbindex
- Owner: CodingBeard
- License: mit
- Created: 2020-11-17T18:36:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-17T19:33:53.000Z (over 5 years ago)
- Last Synced: 2025-12-03T18:59:50.640Z (6 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple alphabetical file index
```
fileIndex, e := cbindex.NewFileIndex(cbindex.Config{
DataCsvPath: "rdd/data.csv", // path to csv file with key to search as first column
IndexCsvPath: "rdd/index.csv", // path to csv file with partial key (same as IndexKeyLength) and byte offset of the start in the file
ConcurrentHandleLimit: 10000, // maximum open file hands, will return errors if exceeded
WarmUpCount: 5000, // how many file handles to warm up if fileIndex.WarmUp() is called
WarmUpDelay: time.Millisecond, // how long to wait between warming each handle
IndexKeyLength: 3, // character length of the indexes
})
```