phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Wang <>
Subject Get region for row key
Date Sun, 10 Jul 2016 21:01:14 GMT
Hi all,

Happy weekend!

I am writing to ask if there is a way that I can get the region number of any given row key?

For the case will salting is applied, I discovered `SaltingUtils.getSaltedKey` method, but
I am not sure how I can get serialize the key as `ImmutableBytesWritable`.

In general, how should the client get the region number? Assuming that the client have no
prior knowledge of the table. So the client needs to read from metadata (salted or not, SPLIT
ON or not), serialize key, compare with splits, etc.

Thanks in advance!


View raw message