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

Method Open

hintfile.go:225–235  ·  view source on GitHub ↗

Open opens a hint file for reading

(path string)

Source from the content-addressed store, hash-verified

223
224// Open opens a hint file for reading
225func (r *HintFileReader) Open(path string) error {
226 file, err := os.Open(path)
227 if err != nil {
228 return err
229 }
230
231 r.file = file
232 r.reader = bufio.NewReader(file)
233
234 return nil
235}
236
237// Read reads a hint entry from the file
238func (r *HintFileReader) Read() (*HintEntry, error) {

Callers 8

BenchmarkHintFileReadFunction · 0.95
loadHintFileMethod · 0.95
TestHintFileWriterReaderFunction · 0.95
TestHintFilePartialReadFunction · 0.95
TestDB_MergeWithHintFileFunction · 0.95
TarCompressFunction · 0.80

Calls

no outgoing calls