How to scan a numerical range in hbase

My line in hbase is numbers with different lengths, like 1,2,3 ..... 32423480, 32423481 ..

When i use

scan 'table' {STARTROW => '1', ENDROW => '3'}  

to scan the table, I only need the result with the row key 1,2,3, but it returns all rows starting with 1,2,3, for example 1003423,200034 ..

Is it possible to filter a range of row keys using a numerical way of using hbase shell or java api?

thank

+4
source share
2 answers

, HBase . , , 1, 2, 3 .., , . , : , , .

:

1) . HBase. , 4- ( 8-, ) HBase . , , HBase . , , , jeff.

2) , Get Scan. get . , , , , , .

+1

Apache Accumulo ( BigTable), , HBase .

, "11" "2". , . , , - 99999, 5 .

1  becomes 00001
2  becomes 00002
11 becomes 00011
etc

, HBase , , (00001, 00003).

+3

Source: https://habr.com/ru/post/1660231/


All Articles