CompanyBook / massive_record

HBase ruby client
130 stars 39 forks source link

What type to use for binary fields? #85

Open behrangsa opened 12 years ago

behrangsa commented 12 years ago

As I couldn't find a forum or mailing list for the project I am asking this question here.

What column type should be used for binary data? Is there an example showing how binary data should be handled? I couldn't find anything in the project's rspec examples.

vincentp commented 12 years ago

Hi, all string are encoded into binary automatically as thrift is transporting the data using that format, you can have a look at the cell file to see how it works: https://github.com/CompanyBook/massive_record/blob/develop/lib/massive_record/wrapper/cell.rb