MCPcopy Create free account
hub / github.com/couchbase/moss / Merge

Method Merge

segment.go:182–184  ·  view source on GitHub ↗

Merge creates or updates a key-val entry in the Collection via the MergeOperator defined in the CollectionOptions. The key must be unique (not repeated) within the segment.

(key, val []byte)

Source from the content-addressed store, hash-verified

180// MergeOperator defined in the CollectionOptions. The key must be
181// unique (not repeated) within the segment.
182func (a *segment) Merge(key, val []byte) error {
183 return a.mutate(OperationMerge, key, val)
184}
185
186// ------------------------------------------------------
187

Callers

nothing calls this directly

Calls 1

mutateMethod · 0.95

Tested by

no test coverage detected