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

Method RLE

vector/record.go:201–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199}
200
201func (f *Optional) RLE() []uint32 {
202 var rle RLE
203 for slot := range f.Len() {
204 // Touch all the values
205 if f.Tags[slot] == 0 {
206 rle.Touch(slot)
207 }
208 }
209 return rle.End(f.Len())
210}
211
212func Opt(vec Any) Any {
213 switch vec := vec.(type) {

Callers 1

writeMethod · 0.80

Calls 3

TouchMethod · 0.95
EndMethod · 0.95
LenMethod · 0.65

Tested by

no test coverage detected