MCPcopy
hub / github.com/grafana/tempo / current

Method current

tempodb/encoding/vparquet5/multiblock_iterator.go:138–149  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

136}
137
138func (b *bookmark[T]) current(ctx context.Context) (common.ID, T, error) {
139 if b.currentErr != nil {
140 return nil, nil, b.currentErr
141 }
142
143 if b.currentObject != nil {
144 return b.currentID, b.currentObject, nil
145 }
146
147 b.currentID, b.currentObject, b.currentErr = b.iter.Next(ctx)
148 return b.currentID, b.currentObject, b.currentErr
149}
150
151func (b *bookmark[T]) done(ctx context.Context) bool {
152 nextID, err := b.iter.peekNextID(ctx)

Callers 3

peekIDMethod · 0.95
doneMethod · 0.95
NextMethod · 0.45

Calls 1

NextMethod · 0.65

Tested by

no test coverage detected