Data model operations

The operations that are the basic blocks of data model are Get, Put, Scan, and Delete, using which we can read, write, and delete records from an HBase table. We will discuss these operations in detail now.

Get

The Get operation can fetch certain records from an HBase table. It is similar to the select [fields] where RowKey=<Row Key value here> statement in relational databases, where we fetch a row from the table.

The following is the representation of Get:

public Result get(Get get)throws IOException

In the preceding code, the Get operation can be provided as a single get object out of a list of get objects as get(List<Get> gets). It is specified by Get in the HTableInterface interface given by HBase. The Get operation receives ...

Get Learning HBase now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.