Inline. J-D
On Tue, Jan 25, 2011 at 3:48 AM, 陈加俊 <[email protected]> wrote: > One programme scan from regions[0].startKey and stop at regions[0].endKey > ,and another programme scan from scan from regions[1].startKey and stop at > regions[1].endKey. > > Every programme get the row by scan and then delete the row immediately. It doesn't sound like something I would do, why are you trying to have knowledge of the layout of the table? What's the use case? > > My question is: > > Will the two programme get the same row,and how to avoid ? No, they are on different key spaces. > > and this case ,another programm inert data to the table all the time,How > should I do? So the scan could get those new rows and delete them too. Is that what you want? If not, then one way of doing it would be to set a TimeRange on the scanner so that you won't see the new data.
