CompanyBook / massive_record

HBase ruby client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What type to use for binary fields?

behrangsa opened this issue · comments

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.

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