MCPcopy
hub / github.com/uber/aresdb / SetValue

Method SetValue

memstore/live_vector_party.go:43–51  ·  view source on GitHub ↗

SetBool implements SetValue in LiveVectorParty interface

(offset int, val unsafe.Pointer, valid bool)

Source from the content-addressed store, hash-verified

41
42// SetBool implements SetValue in LiveVectorParty interface
43func (vp *cLiveVectorParty) SetValue(offset int, val unsafe.Pointer, valid bool) {
44 vp.setValidity(offset, valid)
45 if valid {
46 vp.values.SetValue(offset, val)
47 } else {
48 var zero [2]uint64
49 vp.values.SetValue(offset, unsafe.Pointer(&zero))
50 }
51}
52
53// SetGoValue implements SetGoValue in LiveVectorParty interface
54func (vp *cLiveVectorParty) SetGoValue(offset int, val common.GoDataValue, valid bool) {

Callers

nothing calls this directly

Calls 2

setValidityMethod · 0.80
SetValueMethod · 0.65

Tested by

no test coverage detected