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

Method AsString

value.go:395–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393}
394
395func (v *Value) AsString() string {
396 if v != nil && TypeUnder(v.Type()) == TypeString {
397 return DecodeString(v.Bytes())
398 }
399 return ""
400}
401
402// AsBool returns v's underlying value. It returns false if v is nil or v's
403// underlying type is not TypeBool.

Callers 15

lvalErrFunction · 0.95
mapKeyFunction · 0.95
TestRecordAccessNamedFunction · 0.80
fromConstMethod · 0.80
decodeStringsFunction · 0.80
quoteStringFunction · 0.80
nextPullerMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80
CallMethod · 0.80

Calls 4

TypeMethod · 0.95
BytesMethod · 0.95
TypeUnderFunction · 0.85
DecodeStringFunction · 0.85

Tested by 2

TestRecordAccessNamedFunction · 0.64
TestLegacyZeekValidFunction · 0.64