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

Method GetDataValueByRow

memstore/vector_party.go:196–202  ·  view source on GitHub ↗

GetDataValueByRow implements GetDataValueByRow in cVectorParty

(row int)

Source from the content-addressed store, hash-verified

194
195// GetDataValueByRow implements GetDataValueByRow in cVectorParty
196func (vp *cVectorParty) GetDataValueByRow(row int) common.DataValue {
197 offset := row
198 if vp.GetMode() == common.HasCountVector {
199 offset = vp.counts.UpperBound(0, vp.counts.Size, unsafe.Pointer(&row)) - 1
200 }
201 return vp.GetDataValue(offset)
202}
203
204// SetDataValue implements SetDataValue in cVectorParty
205func (vp *cVectorParty) SetDataValue(offset int, value common.DataValue, countsUpdateMode common.ValueCountsUpdateMode, counts ...uint32) {

Callers

nothing calls this directly

Calls 3

GetModeMethod · 0.95
GetDataValueMethod · 0.95
UpperBoundMethod · 0.80

Tested by

no test coverage detected