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

Method GetValidity

memstore/vector_party.go:161–166  ·  view source on GitHub ↗

GetValidity implements GetValidity in cVectorParty

(offset int)

Source from the content-addressed store, hash-verified

159
160// GetValidity implements GetValidity in cVectorParty
161func (vp *cVectorParty) GetValidity(offset int) bool {
162 if vp.columnMode == common.AllValuesDefault {
163 return vp.defaultValue.Valid
164 }
165 return vp.nulls == nil || vp.nulls.GetBool(offset)
166}
167
168// GetDataValue returns the DataValue for the specified index.
169// It first check validity of the value, then it check whether it's a

Callers 1

GetDataValueMethod · 0.95

Calls 1

GetBoolMethod · 0.45

Tested by

no test coverage detected