Abstract
When data is stored in HBase, a version, also called a timestamp) is required for each value stored in a cell. The timestamp is created automatically by the RegionServer or may be supplied explicitly. By default, the timestamp is the time at the RegionServer when the data was written. Alternatively, the timestamp may be set explicitly. Timestamps are stored in descending order in an HFile, which implies the most recent timestamp is stored first. The timestamp identifies a version and must be unique for each cell. A {row, column, version} tuple specifies a cell in a table. A KeyValue consists of the key and a value with the key being comprised of the row key + column Family + column qualifier + timestamp, as shown in Figure 5-4. The value is the data identified by the key. The timestamp represents a particular version.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Deepak Vohra
About this chapter
Cite this chapter
Vohra, D. (2016). Row Versioning. In: Apache HBase Primer. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2424-3_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2424-3_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2423-6
Online ISBN: 978-1-4842-2424-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)