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

Method Under

value.go:453–460  ·  view source on GitHub ↗

Under resolves named types and untags unions repeatedly, returning a value guaranteed not to have a fusion type, named type or union type.

()

Source from the content-addressed store, hash-verified

451// Under resolves named types and untags unions repeatedly, returning a value
452// guaranteed not to have a fusion type, named type or union type.
453func (v Value) Under() Value {
454 switch v.Type().(type) {
455 case *TypeUnion, *TypeNamed, *TypeFusion:
456 return v.under()
457 }
458 // This is the common case; make sure the compiler can inline it.
459 return v
460}
461
462// under contains logic for Under that the compiler won't inline.
463func (v Value) under() Value {

Callers 15

BenchmarkValueUnderFunction · 0.95
valueUnderFunction · 0.95
wrapMethod · 0.80
EvalMethod · 0.80
compareValuesFunction · 0.80
CompareBoolFunction · 0.80
CompareInt64Function · 0.80
CompareIPFunction · 0.80
CompareFloat64Function · 0.80
CompareStringFunction · 0.80
CompareBytesFunction · 0.80
evalMethod · 0.80

Calls 2

TypeMethod · 0.95
underMethod · 0.95

Tested by 4

BenchmarkValueUnderFunction · 0.76
TestReaderCRLFFunction · 0.64
TestLegacyZeekValidFunction · 0.64
TestNestedRecordsFunction · 0.64