Write a Thrift serializer/unserializer for BSON objects as used by Mongodb in C++
$100-500 USD
Käynnissä
Julkaistu yli 14 vuotta sitten
$100-500 USD
Maksettu toimituksen yhteydessä
We need C++ code that will serialize and unserialize Thrift objects to/from BSON as used by mongodb. There is a JSON serializer/unserializer already in the Thrift package, but BSON is different. When a Thrift object is serialized, the result should be a mongo::BSONObj, and the unserializer should take a mongo::BSONObj as input. It should not serialize/unserialize into JSON as an intermediate step, but instead go directly to/from a mongo::BSONObj. It should use mongo::BSONObjBuilder to do this.
The deliverables include the fully commented C++ code to do this (one .h and one .cpp file), along with a test harness that demonstrates it, and a Makefile to build it. It should be 64-bit clean and compile/run on both Mac OS X Snow Leopard, as well as recent 64-bit Linux distros.