You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Branimir Lambov (JIRA)" <ji...@apache.org> on 2014/11/26 13:34:12 UTC

[jira] [Updated] (CASSANDRA-8375) Cleanup of generics in bounds serialization

     [ https://issues.apache.org/jira/browse/CASSANDRA-8375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Branimir Lambov updated CASSANDRA-8375:
---------------------------------------
    Attachment: 8375.patch

> Cleanup of generics in bounds serialization
> -------------------------------------------
>
>                 Key: CASSANDRA-8375
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8375
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>            Priority: Trivial
>         Attachments: 8375.patch
>
>
> There is currently a single serializer for {{AbstractBounds}} applied to both {{Token}} and {{RowPosition}} ranges and bounds. This serializer does not know which kind of bounds it needs to work with, which causes some necessarily unsafe conversions and needs extra code in all bounds types ({{toRowBounds}}/{{toTokenBounds}}) to make the conversions safe, the application of which can be easily forgotten.
> As all users of this serialization know in advance the kind of range they want to serialize, this can be replaced by simpler type-specific serialization.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)