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