MCPcopy Create free account
hub / github.com/brimdata/super / Next

Method Next

scode/iter.go:72–81  ·  view source on GitHub ↗

Next returns the next element of the record and false if its present; otherwise, nil and true for None.

(opt bool)

Source from the content-addressed store, hash-verified

70// Next returns the next element of the record and false if its
71// present; otherwise, nil and true for None.
72func (r *RecordIter) Next(opt bool) (Bytes, bool) {
73 if opt {
74 off := r.off
75 r.off++
76 if TestBit(r.nones, off) {
77 return nil, true
78 }
79 }
80 return r.elems.Next(), false
81}
82
83func TestBit(b []byte, off int) bool {
84 return b[off>>3]&(1<<(off&7)) != 0

Callers 15

nthMethod · 0.95
walkRecordFunction · 0.95
WriteMethod · 0.95
recordToExprFunction · 0.95
formatRecordMethod · 0.95
decodeRecordMethod · 0.95
recMethod · 0.95
EvalMethod · 0.95
recodeMethod · 0.95
getNthFromRecordFunction · 0.95
recodeFunction · 0.95
evalMethod · 0.95

Calls 2

TestBitFunction · 0.85
NextMethod · 0.45

Tested by

no test coverage detected