OdpsProtobuf

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/odps_protobuf. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'odps_protobuf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install odps_protobuf

Usage

serializer = Odps::ProtobufSerializer.new
serializer.serialize(records, schema)  # => serialized string

deserializer = Odps::ProtobufDeSerializer.new
deserializer.deserialize(serialized_string, schema) # => unserialized records

Authors && Contributors

Thanks

License

licensed under the Apache License 2.0