O'Reilly logo

Apache HBase Primer by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Deepak Vohra 2016

Deepak Vohra, Apache HBase Primer, 10.1007/978-1-4842-2424-3_17

17. Using the Get Class

Deepak Vohra

(1)Apt 105, White Rock, British Columbia, Canada

Given a table and row key, you can use the get() operation to return specific versions of that row. The org.apache.hadoop.hbase.client.Get class is used to perform Get operations on a single row. Given a row with row key of row1 in a table named table1, the column value for a column with column family cf1 and column qualifier col1 is obtained as follows.

The org.apache.hadoop.hbase.TableName class represents a table name. Create a TableName instance:

TableName tableName=TableName.valueOf('table1');              

The HBase configuration is represented with the org.apache.hadoop.hbase.HBaseConfiguration ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required