hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject how to reverse an integer for rowkey?
Date Thu, 27 Mar 2014 08:24:41 GMT
my rowkey is <strField,intField>
I want to scan it by decreasing order of the int field, how to make it reversed?
if the row key is Bytes.toBytes(intField) + Bytes.toBytes(strField),
then the order is increasing.
one solution is replace intField with -intField. but if
intField==Integer.MIN_VALUE, what will happen?

View raw message