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

Method IndexOfField

value.go:357–362  ·  view source on GitHub ↗
(field string)

Source from the content-addressed store, hash-verified

355}
356
357func (v Value) IndexOfField(field string) (int, bool) {
358 if typ := TypeRecordOf(v.Type()); typ != nil {
359 return typ.IndexOfField(field)
360 }
361 return 0, false
362}
363
364func (v *Value) Deref(field string) *Value {
365 if v == nil {

Callers 12

DerefMethod · 0.95
DerefWithNoneMethod · 0.95
dropPathMethod · 0.45
derefMethod · 0.45
indexRecordFunction · 0.45
evalMethod · 0.45
ConsumeAsPartialMethod · 0.45
dstTypeMethod · 0.45
fieldIndexMethod · 0.45
derefWithNoneFunction · 0.45
derefWithNoneAndOkFunction · 0.45
parseElemMethod · 0.45

Calls 2

TypeMethod · 0.95
TypeRecordOfFunction · 0.85

Tested by

no test coverage detected