cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Shi <>
Subject a question about the "token" and “key" in KeyRange
Date Fri, 18 Feb 2011 02:17:16 GMT
I saw on this page:


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


View raw message