Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new class Rdb_converter to expose decode API
Upstream commit ID : fb-mysql-5.6.35/e1516e7601e5a721459ab38054a8d75091736f41 PS-6865 : Merge fb-prod201903 Summary: This is first change for Read/Write Path refactor. The purpose of refactor: 1. Allow others to call encode/decode directly by decoupling encode/decode internal data/function with ha_rocksdb * decode: convert RocksDB storage format to Mysql Format * encode: convert Mysql format to RocksDb storage format 2. Allow others to hook up its own encoder/decoder This change is to move decode related data/function into Rdb_converter and ha_rocksdb will call Rdb_converter to decode. To Use class Rdb_converter to decode RocksDb storage data 1. create Rdb_converter instance 2. call setup_field_decoders(bitmap) or set_is_keyread_only 3. call decode(/*IN*/Rdb_key_def, /*IH*/ key_slice, /*IN*/value_slice, /*OUT*/ buffer); Reviewed By: yizhang82 Differential Revision: D14354790 fbshipit-source-id: c5dac92b6c1
- Loading branch information