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

Function StringValue

vector/string.go:48–60  ·  view source on GitHub ↗
(val Any, slot uint32)

Source from the content-addressed store, hash-verified

46}
47
48func StringValue(val Any, slot uint32) string {
49 switch val := val.(type) {
50 case *String:
51 return val.Value(slot)
52 case *Const:
53 return StringValue(val.Any, 0)
54 case *Dict:
55 return StringValue(val.Any, uint32(val.Index[slot]))
56 case *View:
57 return StringValue(val.Any, val.Index[slot])
58 }
59 panic(val)
60}

Callers 15

indexRecordFunction · 0.92
compareEQStringFlatConstFunction · 0.92
compareEQStringDictConstFunction · 0.92
compareEQStringViewConstFunction · 0.92
compareEQStringConstFlatFunction · 0.92
compareEQStringConstDictFunction · 0.92
compareEQStringConstViewFunction · 0.92
compareNEStringFlatConstFunction · 0.92
compareNEStringDictConstFunction · 0.92
compareNEStringViewConstFunction · 0.92
compareNEStringConstFlatFunction · 0.92

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected