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

Method Merge

api.go:341–341  ·  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 Batch. Merge() copies the key and val bytes into the Batch, so the memory bytes of the key and val may be reused by the caller.

(key, val []byte)

Source from the content-addressed store, hash-verified

339 // the key and val bytes into the Batch, so the memory bytes of
340 // the key and val may be reused by the caller.
341 Merge(key, val []byte) error
342
343 // ----------------------------------------------------
344

Callers 7

TestIteratorMergeOpsFunction · 0.95
runOpTestsFunction · 0.95
opMergeFuncFunction · 0.65

Calls

no outgoing calls

Tested by 6

TestIteratorMergeOpsFunction · 0.76
runOpTestsFunction · 0.76