Ah, maybe you deleted ALL the rows in the first range (= region) and you're wondering why the first region still exist? Could you please tell me what would be the expected result you think?
- Tatsuya 2011/1/29 Tatsuya Kawano <[email protected]>: > Hi Jiajun, > > 2011/1/29 陈加俊 <[email protected]>: >> final Pair<byte[][], byte[][]> ranges = table.getStartEndKeys(); >> final byte[][] startKeys = ranges.getFirst(); >> final byte[][] endKeys = ranges.getSecond(); >> >> I scan the first range and delete the rows,and get the second range and >> delete the rows. But I find the ranges is not changed after about 5 minutes. > > Those are start and end keys of each region and they don't change when > you put or delete rows until the size of the region reaches the > threshold and get split. Note that the region includes the startKey > and excludes the endKey, so the endKey is actually the startKey of > next region. > > - Tatsuya > > -- > 河野 達也 > Tatsuya Kawano (Mr.) > Tokyo, Japan > > twitter: http://twitter.com/tatsuya6502 > -- 河野 達也 Tatsuya Kawano (Mr.) Tokyo, Japan twitter: http://twitter.com/tatsuya6502
