Equivalent to HBase

I am working on a project that uses HBase. Although I formed rowkey as best as possible, in some scenarios I still need to get the results in ascending or descending order. Is there anything in HBase equivalent to MySQL's "order by" operation? Or can it be sorted by a specific column classifier in HBase?

+3
source share
2 answers

No; you need to read the data in sort order in the string key, and then make your own look (for example, in Java or any other language that you use).

+4
source

I know the message is outdated, but for future reference. Scan (Hbase 0.98+) now supportssetReversed

public Scan setReversed(boolean reversed)
  Set whether this scan is a reversed one
  This is false by default which means forward(normal) scan.

Parameters:
 reversed - if true, scan will be backward order
Returns:

: - Hbase Scan

+2

All Articles