Le 09/04/2012 08:46, Ram a écrit :
Im trying to store a list,collection of data objects in Hbase. For example ,a
User table where a the userId is the Rowkey and column family Contacts with
column Contacts:EmailIds where EmailIds is a list of emails as
{[email protected],bpqrs-Re5JQEeQqe/[email protected]}
How do we model this in Hbase ? How do we do this in Java?/Python?Ive tried
pickling and unpickling data in Python but this is one solution which I do not
want to use due to performance issues.
Hello,
i see two solutions :
1) seriliaze your email list and put in in column Contacts:EmailIds and
desiarilize when you want to read it.
2) or store each email in a qualifier of the column family contact.
ex :
Contacts:Email1
Contacts:Email2
Contacts:Email3
....
for me the best solution is the one because the desiarilization of this
kind of object is very fast, the second one i don't know because i'm a
beginner in hbase but i know that have to much qulifier is not good
(hbase book smackdown).