| 460 | } |
| 461 | |
| 462 | type documentIterator struct { |
| 463 | qr *queryRunner // the query runner |
| 464 | items []map[string]dyn2Types.AttributeValue // items from the last query |
| 465 | curr int // index of the current item in items |
| 466 | offset int // number of items to skip |
| 467 | limit int // number of items to return |
| 468 | count int // number of items returned |
| 469 | last map[string]dyn2Types.AttributeValue // lastEvaluatedKey from the last query |
| 470 | asFunc func(i any) bool // for As |
| 471 | } |
| 472 | |
| 473 | func (it *documentIterator) Next(ctx context.Context, doc driver.Document) error { |
| 474 | // Skip the first 'n' documents where 'n' is the offset. |
nothing calls this directly
no outgoing calls
no test coverage detected