[ 
https://issues.apache.org/jira/browse/CASSANDRA-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096119#comment-13096119
 ] 

Tyler Hobbs commented on CASSANDRA-3083:
----------------------------------------

Is there a good reason why instance methods in this class that create new 
Ranges should not use the instance's partitioner attribute for the new Ranges?  
And for static functions taking two Ranges, isn't it reasonable to use the 
partitioner attribute of one of the Range parameters?

> o.a.c.dht.Range.getDifferenceToFetch() depends on StorageService singleton
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-3083
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3083
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 0.8.4
>            Reporter: Tyler Hobbs
>
> Range.getDifferenceToFetch() is handy for doing math with range sets, but it 
> cannot be used outside of a Cassandra instance because it creates new Range 
> objects with the constructor that uses StorageService.getPartitioner(), a 
> static function.
> Overloading this method to allow a partitioner to be supplied (so that the 
> Range(lhs, rhs, partitioner) ctor can be used) would make this possible.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to