示例#1
0
// PutCF queues a key-value pair in a column family.
func (w *WriteBatch) PutCF(cf *CF, key, value []byte) {
	cKey := byteToChar(key)
	cValue := byteToChar(value)
	C.rocksdb_writebatch_put_cf(w.c, cf.c, cKey, C.size_t(len(key)), cValue, C.size_t(len(value)))
}
示例#2
0
// PutCF queues a key-value pair in a column family.
func (self *WriteBatch) PutCF(cf *ColumnFamilyHandle, key, value []byte) {
	cKey := byteToChar(key)
	cValue := byteToChar(value)

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