hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ri...@laposte.net
Subject Read access pattern
Date Mon, 29 Apr 2013 15:03:05 GMT
Hi,

I have a rowkey defined by :
        getMD5AsHex(Bytes.toBytes(myObjectId)) + String.format("%19d\n", (Long.MAX_VALUE
- changeDate.getTime()));

How could I get the previous and next row for a given rowkey ?
For instance, I have the following ordered keys :

00003db1b6c1e7e7d2ece41ff2184f76*9223370673172227807
00003db1b6c1e7e7d2ece41ff2184f76*9223370674468022807
>00003db1b6c1e7e7d2ece41ff2184f76*9223370674468862807
00003db1b6c1e7e7d2ece41ff2184f76*9223370674984237807
00003db1b6c1e7e7d2ece41ff2184f76*9223370674987271807

If I choose the rowkey : 00003db1b6c1e7e7d2ece41ff2184f76*9223370674468862807, what would
be the correct scan to get the previous and next key ?
Result would be :
00003db1b6c1e7e7d2ece41ff2184f76*9223370674468022807
00003db1b6c1e7e7d2ece41ff2184f76*9223370674984237807

Thank you !
R.

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

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