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

Function UintValue

vector/uint.go:47–62  ·  view source on GitHub ↗
(vec Any, slot uint32)

Source from the content-addressed store, hash-verified

45}
46
47func UintValue(vec Any, slot uint32) uint64 {
48 switch vec := Under(vec).(type) {
49 case *Uint:
50 return vec.Value(slot)
51 case *Const:
52 return UintValue(vec.Any, 0)
53 case *Dict:
54 return UintValue(vec.Any, uint32(vec.Index[slot]))
55 case *Dynamic:
56 tag := vec.Tags[slot]
57 return UintValue(vec.Values[tag], vec.ForwardTagMap()[slot])
58 case *View:
59 return UintValue(vec.Any, vec.Index[slot])
60 }
61 panic(vec)
62}

Callers 15

compareEQUintFlatConstFunction · 0.92
compareEQUintDictConstFunction · 0.92
compareEQUintViewConstFunction · 0.92
compareEQUintConstFlatFunction · 0.92
compareEQUintConstDictFunction · 0.92
compareEQUintConstViewFunction · 0.92
compareEQUintConstConstFunction · 0.92
compareNEUintFlatConstFunction · 0.92
compareNEUintDictConstFunction · 0.92
compareNEUintViewConstFunction · 0.92
compareNEUintConstFlatFunction · 0.92
compareNEUintConstDictFunction · 0.92

Calls 3

ForwardTagMapMethod · 0.80
UnderFunction · 0.70
ValueMethod · 0.45

Tested by

no test coverage detected