The key

    0 cf0:cq0

is greater than

    0 cf0:

(with an empty column qualifier).

This is why your first range finds nothing. Inclusivity is based on the entire key, not just the components of the key you provided.

Lu Qin wrote:
In my accumulo cluster ,the table has this data:
0 cf0:cq0 [] v0
1 cf1:cq1 [] v1

then I use scan to find it like this:

ranges.add(newRange(newKey(newText("0"), newText("cf0")), true,
                      newKey(newText("0"), newText("cf0")), true));

but it tell me #results=0.

If i code like this:

ranges.add(newRange(newKey(newText("0"), newText("cf0")), true,
                      newKey(newText("0"), newText("cf00")), true));

it works OK.


api show me if I set true ,it will include the start and end key.Why I
can not find the data ?

Thanks.

Reply via email to