phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject How to use Hbase API queries?
Date Wed, 16 Jul 2014 06:46:04 GMT

hi, I insert some rows into table via phoenix 4.0 client .
>create table student (id integer primary key , name varchar) ;>upsert into student
(id,name) values(1,'tony');>upsert into student (id,name) values(2,'tom');

> hbase shell> scan 'student'ROW                             COLUMN+CELL  \x80\x00\x00\x01  
   column=0:NAME, timestamp=1405475073111, value=tony \x80\x00\x00\x01      column=0:_0, timestamp=1405475073111,
value=  \x80\x00\x00\x02      column=0:NAME, timestamp=1405475078206, value=tom
How to convert rowkey? Then  i  can  get rows via Hbase  java API.

View raw message