cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-11588) Unify CollectionType#{getValuesType|getElementsType}
Date Sat, 16 Apr 2016 16:03:25 GMT

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

Alex Petrov updated CASSANDRA-11588:
------------------------------------
    Description: 
Currently, {{ListType}} and {{SetType}} have {{getElementsType}}, while {{MapType}} has {{getValuesType}}
(along with {{getKeysType}}.

It might make sense to unify these types and make all three types have {{getValuesType}},
which would simply mean renaming for {{Set}} and {{List}} and pulling the method up to {{CollectionType}}.
This would make [#7826|https://issues.apache.org/jira/browse/CASSANDRA-7826] a bit simpler.



  was:
Currently, {{ListType}} and {{SetType}} have {{getElementsType}}, while {{MapType}} has {{getValuesType}}
(along with {{getKeysType}}.

It might make sense to unify these types and make all three types have {{getValuesType}},
which would simply mean renaming for {{Set}} and {{List}} and pulling the method up to {{CollectionType}}.





> Unify CollectionType#{getValuesType|getElementsType}
> ----------------------------------------------------
>
>                 Key: CASSANDRA-11588
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11588
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Alex Petrov
>            Assignee: Alex Petrov
>            Priority: Minor
>             Fix For: 3.x
>
>
> Currently, {{ListType}} and {{SetType}} have {{getElementsType}}, while {{MapType}} has
{{getValuesType}} (along with {{getKeysType}}.
> It might make sense to unify these types and make all three types have {{getValuesType}},
which would simply mean renaming for {{Set}} and {{List}} and pulling the method up to {{CollectionType}}.
This would make [#7826|https://issues.apache.org/jira/browse/CASSANDRA-7826] a bit simpler.



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

Mime
View raw message