Skip to content

Commit

Permalink
get value
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalii Cherkashyn authored Mar 22, 2020
1 parent 4894d87 commit a452871
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hbase.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ java \
--component-state-table-name {{ component_state_table }} \
--session-id $1
```
## get value
```java
Get record = new Get(Bytes.toBytes("row_key"));
record.addColumn(bytes.toBytes("column_family"), bytes.toBytes("column_name"));
Result result = mytable1.get(record);
```
## update record
```java
Put row=new Put(Bytes.toBytes("rowKey"));
Expand Down

0 comments on commit a452871

Please sign in to comment.