Command like SQL LIMIT in HBase

前端 未结 5 1097
暗喜
暗喜 2021-01-31 13:55

Does HBase have any command that works like SQL LIMIT query?

I can do it by setStart and setEnd, but I do not want to iterate all

5条回答
  •  耶瑟儿~
    2021-01-31 14:22

    If one uses HBase Shell, the following command could be used to limit the query results:The "LIMIT" must be enclosed in single quotes.

    scan 'table-name', {'LIMIT' => 10}
    

提交回复
热议问题