Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Deciding the number of the version


Now, let's discuss the maximum and minimum numbers of a version we can consider for a table. This information is maintained using HColumnDescriptor, which contains information about a column family, such as the number of versions and compression settings. This acts as input for table creation and addition of columns.

Lower bound of versions

The default lower bound of version is 0, which means it is disabled. The minimum number of rows a version uses is in conjunction with Time To Live (TTL), and we can have 0 or more for a version, according to the requirements of the use case. Using 0 for version will prevent the writing of more than one value to the cell.

Upper bound of versions

The default upper bound for a version is 3, which keeps three copies (inserted on the basis of a timestamp) of a row. It is advised that the maximum number should not be very large as it is storage-centric too. So, more or less 100 can be thought of as the upper bound, which is not...