Skip to main content

Row Versioning

  • Chapter
  • First Online:
Apache HBase Primer
  • 938 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics