Tuesday, November 21, 2017

Command like SQL LIMIT in HBase

From the HBase shell you can use LIMIT:
hbase> scan 'test-table', {'LIMIT' => 5}
From the Java API you can use Scan.setMaxResultSize(N) or scan.setMaxResultsPerColumnFamily(N).

No comments:

Post a Comment