When I worked with HBase, I spent a lot time to convert the byte array into types like String or Long. Why does HBase store value as byte array instead of typed value?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HBase is a Bigtable clone, and that’s what Bigtable does. Bigtable typically does not store fine-grained data like a relational database, they store serialized objects, typically protocol buffers.
You can either try using the serialize object approach, or abstract the interface to the HBase library so that you only convert your types in a single place.