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

Method Deref

value.go:364–374  ·  view source on GitHub ↗
(field string)

Source from the content-addressed store, hash-verified

362}
363
364func (v *Value) Deref(field string) *Value {
365 if v == nil {
366 return nil
367 }
368 i, ok := v.IndexOfField(field)
369 if !ok {
370 return nil
371 }
372 val, _ := v.DerefByColumn(i)
373 return val
374}
375
376func (v *Value) DerefWithNone(field string) (*Value, bool) {
377 if v == nil {

Callers 12

DerefPathMethod · 0.95
TestSUPBuilderFunction · 0.95
TestRecordAccessNamedFunction · 0.45
TestNonRecordDerefFunction · 0.45
indexRecordByNameFunction · 0.45
evalMethod · 0.45
downcastMethod · 0.45
ConsumeAsPartialMethod · 0.45
TestReaderCRLFFunction · 0.45
TestLegacyZeekValidFunction · 0.45
TestNestedRecordsFunction · 0.45
WriteMethod · 0.45

Calls 2

IndexOfFieldMethod · 0.95
DerefByColumnMethod · 0.95

Tested by 6

TestSUPBuilderFunction · 0.76
TestRecordAccessNamedFunction · 0.36
TestNonRecordDerefFunction · 0.36
TestReaderCRLFFunction · 0.36
TestLegacyZeekValidFunction · 0.36
TestNestedRecordsFunction · 0.36