Hbase sorted scan results

How to get the “value” values ​​of a hbase family column in any sorted order of the same?

like a family of columns value
   ---------------------------------
          column: 1 1
         column: 3 2
          column: 4 3
          column: 2 4

+3
source share
1 answer

HBase itself will not do this, instead you can get the KeyValues ​​list using the Result.raw [1] method, put it in the list and sort it by passing your own comparator to Collections.sort [2].

+6

All Articles