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

Method Next

tempodb/encoding/vparquet4/wal_block.go:1051–1069  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

1049}
1050
1051func (i *commonIterator) Next(ctx context.Context) (common.ID, *tempopb.Trace, error) {
1052 id, row, err := i.iter.Next(ctx)
1053 if err != nil && !errors.Is(err, io.EOF) {
1054 return nil, nil, err
1055 }
1056
1057 if row == nil || errors.Is(err, io.EOF) {
1058 return nil, nil, nil
1059 }
1060
1061 t := &Trace{}
1062 err = i.schema.Reconstruct(t, row)
1063 if err != nil {
1064 return nil, nil, err
1065 }
1066
1067 tr := ParquetTraceToTempopbTrace(i.meta, t)
1068 return id, tr, nil
1069}
1070
1071func (i *commonIterator) NextRow(ctx context.Context) (common.ID, parquet.Row, error) {
1072 return i.iter.Next(ctx)

Callers

nothing calls this directly

Calls 2

NextMethod · 0.65

Tested by

no test coverage detected