You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Stanley Shi <de...@gmail.com> on 2011/02/18 03:17:16 UTC

a question about the "token" and “key" in KeyRange

I saw on this page: http://wiki.apache.org/cassandra/API07

*KeyRange

A KeyRange is used by get_range_slices to define the range of keys to get
the slices for.

The semantics of start keys and tokens are slightly different. Keys are
start-inclusive; tokens are start-exclusive. Token ranges may also wrap --
that is, the end token may be less than the start one. Thus, a range from
keyX to keyX is a one-element range, but a range from tokenY to tokenY is
the full ring.


from the above, tokens are start-exclusive, then a range from tokenY to
tokenY will not include tokenY, so the range is not the "full ring", am I
right?


-stanley
*