hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shuja Rehman <shujamug...@gmail.com>
Subject Scan (Start Row, End Row) vs Scan (Row)
Date Thu, 20 Jan 2011 08:22:24 GMT
Hi
Consider the following scenario.

Row Key  Format = DATETIME_VAR1_VAR2 (where var1 and var2 have fixed
lengths)

and example data could be

20100809041500_abc_xyz
20100809041500_abc_xyw
20100809041500_abc_xyc
*20100809041500_abd_xyz*
20100809041500_abd_xyw
20100809041500_abf_xyz
...

Now if i want to get the rows which only have this row key
20100809041500_abd then is there anyway to achieve through scan without
using filter because if i use filter scan(startrow, filter) where
startrow="20100809041500_abd" then it will scan whole table from start key
to end of table. i want to just scan that part of table which i require. So
if there is any method like this

scan(row)  where row ="20100809041500_abd"  and it just return the following
results

20100809041500_abd_xyz
20100809041500_abd_xyw

Kindly let me know whether it is achievable or not?
thnx
-- 
Regards
Shuja-ur-Rehman Baig
<http://pk.linkedin.com/in/shujamughal>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message