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

Tyler Hobbs updated CASSANDRA-3083:
-----------------------------------

    Description: 
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.

  was:
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 StorageProxy.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.

        Summary: o.a.c.dht.Range.getDifferenceToFetch() depends on 
StorageService singleton  (was: o.a.c.dht.Range.getDifferenceToFetch() depends 
on StorageProxy singleton)

> 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