Abstract
The checkAndPut() method in the HTable class is used to put data in a table if a row/column family/column qualifier > value matches an expected value. If it does, a new value specified with a Put is put in the table. If not, the new value is not put. The method returns true if the new value is put and returns false if the new value is not put. Before discussing the checkAndPut() method, however, let’s discuss the put(Put put) method, which puts data without first performing a check.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2016 Deepak Vohra
About this chapter
Cite this chapter
Vohra, D. (2016). Using the HTable Class. In: Apache HBase Primer. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2424-3_18
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2424-3_18
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)