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

Method SafeDestruct

memstore/vector_party.go:125–134  ·  view source on GitHub ↗

SafeDestruct destructs all vectors of this vector party. Corresponding pointer should be set as nil after destruction.

()

Source from the content-addressed store, hash-verified

123// SafeDestruct destructs all vectors of this vector party. Corresponding pointer should be set
124// as nil after destruction.
125func (vp *cVectorParty) SafeDestruct() {
126 if vp != nil {
127 vp.values.SafeDestruct()
128 vp.values = nil
129 vp.nulls.SafeDestruct()
130 vp.nulls = nil
131 vp.counts.SafeDestruct()
132 vp.counts = nil
133 }
134}
135
136// GetBytes returns space occupied by this vector party.
137func (vp *cVectorParty) GetBytes() int64 {

Callers

nothing calls this directly

Calls 1

SafeDestructMethod · 0.65

Tested by

no test coverage detected