Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Hbase

You're reading from   Learning Hbase Learn the fundamentals of HBase administration and development with the help of real-time scenarios

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783985944
Length 326 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Shashwat Shriparv Shashwat Shriparv
Author Profile Icon Shashwat Shriparv
Shashwat Shriparv
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Understanding the HBase Ecosystem FREE CHAPTER 2. Let's Begin with HBase 3. Let's Start Building It 4. Optimizing the HBase/Hadoop Cluster 5. The Storage, Structure Layout, and Data Model of HBase 6. HBase Cluster Maintenance and Troubleshooting 7. Scripting in HBase 8. Coding HBase in Java 9. Advance Coding in Java for HBase 10. HBase Use Cases Index

Data types


Let's have a look at the data types available in HBase. In HBase, everything is a byte. It is a byte in and a byte out, which means everything that has to be written in HBase needs to be converted/encoded to a byte array, and while reading, it can again be converted/decoded to an equivalent representation. This facility is provided by the put and result interfaces. So, no matter what the type of data is, as long as it can be converted to a byte array, it can be stored in an HBase table. The input data type might be an integer, image, or object, or a long or string. All of these can be converted to a byte array and stored in an HBase table.

Since we can store any type of data, it does not imply that we can convert and store huge amounts of data into an HBase cell as there is a practical limit; more than 20 MB is a big thing to ask for. So, it's better that we choose smaller data that can be converted and stored in an HBase cell, and for huge amounts of data, we can choose other...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime