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

Method done

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

Source from the content-addressed store, hash-verified

149}
150
151func (b *bookmark[T]) done(ctx context.Context) bool {
152 nextID, err := b.iter.peekNextID(ctx)
153 if !errors.Is(err, util.ErrUnsupported) {
154 return nextID == nil || err != nil
155 }
156
157 _, obj, err := b.current(ctx)
158
159 return obj == nil || err != nil
160}
161
162func (b *bookmark[T]) clear() {
163 b.currentID = nil

Callers 1

doneMethod · 0.45

Calls 2

currentMethod · 0.95
peekNextIDMethod · 0.65

Tested by

no test coverage detected