cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Branimir Lambov (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-8230) LongToken no longer needs to use a boxed Long
Date Fri, 31 Oct 2014 15:22:33 GMT


Branimir Lambov updated CASSANDRA-8230:
    Attachment: 8230-2.1.patch

I went a little further with this, also changing some other features of the token code that
did not make much sense. The attached patch applies after 8171, comparison is viewable [here|].

Small reorganization and simplification of the Token hierarchy:
* LongToken inherits directly from Token and gets a primitive long token
field, improving efficiency.
* BytesToken no longer inherits from AbstractToken as it was not making
use of any of its functionality.
* AbstractToken becomes applicable to Comparable tokens only, allowing
more shared functionality to be moved there.
* AbstractByteOrderedPartitioner is simplified as it is only used with
byte[] tokens.

> LongToken no longer needs to use a boxed Long
> ---------------------------------------------
>                 Key: CASSANDRA-8230
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>            Priority: Minor
>             Fix For: 2.1.2
>         Attachments: 8230-2.1.patch
> After CASSANDRA-8171 a token reference field is no longer a requirement for tokens. This
permits LongTokens to include a primitive long field, which should noticeably improve the
space and time efficiency of the Murmur3Partitioner tokens.

This message was sent by Atlassian JIRA

View raw message