(context.Context)
| 74 | } |
| 75 | |
| 76 | func (i *rawIterator) Next(context.Context) (common.ID, parquet.Row, error) { |
| 77 | rows := []parquet.Row{i.pool.Get()} |
| 78 | n, err := i.r.ReadRows(rows) |
| 79 | if n > 0 { |
| 80 | return i.getTraceID(rows[0]), rows[0], nil |
| 81 | } |
| 82 | |
| 83 | if errors.Is(err, io.EOF) { |
| 84 | i.pool.Put(rows[0]) |
| 85 | return nil, nil, nil |
| 86 | } |
| 87 | |
| 88 | if err != nil { |
| 89 | return nil, nil, fmt.Errorf("error iterating through block %s: %w", i.blockID, err) |
| 90 | } |
| 91 | return nil, nil, nil |
| 92 | } |
| 93 | |
| 94 | func (i *rawIterator) peekNextID(context.Context) (common.ID, error) { // nolint:unused // this is required to satisfy the bookmarkIterator interface |
| 95 | return nil, util.ErrUnsupported |
nothing calls this directly
no test coverage detected