Comments (2)
You need to serialize the data yourself, HBase only really deals with strings and numbers.
if you're using OkHbase::ActiveModel
, you can do something like:
User < OkHbase::ActiveModel
def self.table_name
'users'
end
def self.connection
@ok_hbase_connection ||= OkHbase::Connection.new(...)
end
def preferences=(val)
super val.to_json # serialize before saving field
end
def preferences
JSON.parse(super).with_indifferent_access # deserialize field
end
end
from ok_hbase.
Oh okay. Cool, thank you!
from ok_hbase.
Related Issues (13)
- Connection to Remote Hbase HOT 13
- how to run it? HOT 5
- Table#rows should return an array of (row_key, columns) tuples
- Upgrade hbase.rb to latest Thrift interface definition file HOT 1
- License missing from gemspec
- Row Start and Row Stop parameters in scanning a hbase table HOT 5
- Using Filters in Row Scan HOT 3
- Can i pull meta data using OK_Hbase gem HOT 4
- thrift-0.9.0 warning
- Maintain Thrift Connection between Requests HOT 3
- Thrift 0.9.0 doesn't compile on OSX 10.9.2 HOT 5
- How to close connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ok_hbase.