MCPcopy Create free account
hub / github.com/brimdata/super / NewReader

Method NewReader

db/journal/queue.go:140–142  ·  view source on GitHub ↗

NewReader returns a BSUP reader that concatenates the journal files in sequence from tail to head. Since BSUP is stored in the journal, concatenation produce valid BSUP.

(ctx context.Context, head, tail ID)

Source from the content-addressed store, hash-verified

138// in sequence from tail to head. Since BSUP is stored in the journal,
139// concatenation produce valid BSUP.
140func (q *Queue) NewReader(ctx context.Context, head, tail ID) *Reader {
141 return newReader(ctx, q, head, tail)
142}
143
144func (q *Queue) uri(id ID) *storage.URI {
145 return q.path.JoinPath(fmt.Sprintf("%d.%s", id, ext))

Callers 5

OpenMethod · 0.95
readEntriesMethod · 0.45
writeTailMethod · 0.45
CommitAtMethod · 0.45
writeIDFunction · 0.45

Calls 1

newReaderFunction · 0.70

Tested by

no test coverage detected