Beispiel #1
0
// MergeCF queues a merge of "value" with the existing value of "key" in a
// column family.
func (w *WriteBatch) MergeCF(cf *CF, key, value []byte) {
	cKey := byteToChar(key)
	cValue := byteToChar(value)
	C.rocksdb_writebatch_merge_cf(w.c, cf.c, cKey, C.size_t(len(key)), cValue, C.size_t(len(value)))
}
Beispiel #2
0
// MergeCF queues a merge of "value" with the existing value of "key" in a
// column family.
func (self *WriteBatch) MergeCF(cf *ColumnFamilyHandle, key, value []byte) {
	cKey := byteToChar(key)
	cValue := byteToChar(value)

	C.rocksdb_writebatch_merge_cf(self.c, cf.c, cKey, C.size_t(len(key)), cValue, C.size_t(len(value)))
}