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

Function NewNilSyncIterator

pkg/parquetquery/nil_iter.go:21–32  ·  view source on GitHub ↗
(ctx context.Context, rgs []pq.RowGroup, column int, opts ...SyncIteratorOpt)

Source from the content-addressed store, hash-verified

19var _ Iterator = (*NilSyncIterator)(nil)
20
21func NewNilSyncIterator(ctx context.Context, rgs []pq.RowGroup, column int, opts ...SyncIteratorOpt) *NilSyncIterator {
22 // Create the sync iterator
23 syncIterator := NewSyncIterator(ctx, rgs, column, opts...)
24
25 i := &NilSyncIterator{
26 SyncIterator: *syncIterator,
27 lastRowNumberReturned: EmptyRowNumber(),
28 valueFound: false,
29 }
30
31 return i
32}
33
34func (c *NilSyncIterator) String() string {
35 filter := "nil"

Callers 1

TestNilIteratorFunction · 0.85

Calls 2

NewSyncIteratorFunction · 0.85
EmptyRowNumberFunction · 0.85

Tested by 1

TestNilIteratorFunction · 0.68