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

Method AsBool

value.go:404–409  ·  view source on GitHub ↗

AsBool returns v's underlying value. It returns false if v is nil or v's underlying type is not TypeBool.

()

Source from the content-addressed store, hash-verified

402// AsBool returns v's underlying value. It returns false if v is nil or v's
403// underlying type is not TypeBool.
404func (v *Value) AsBool() bool {
405 if v != nil && TypeUnder(v.Type()) == TypeBool {
406 return v.Bool()
407 }
408 return false
409}
410
411func (v *Value) AsInt() int64 {
412 if v != nil {

Callers 12

TestRecordAccessNamedFunction · 0.80
hasErrorFunction · 0.80
mustEvalBoolMethod · 0.80
SearchByPredicateFunction · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
EvalMethod · 0.80
ApplyMethod · 0.80
filterFunction · 0.80
writePrimitiveMethod · 0.80
pruneObjectFunction · 0.80
ConcurrentPullMethod · 0.80

Calls 3

TypeMethod · 0.95
BoolMethod · 0.95
TypeUnderFunction · 0.85

Tested by 1

TestRecordAccessNamedFunction · 0.64