lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Risden (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-9066) Make CountMetric return long instead of double
Date Wed, 04 May 2016 15:18:13 GMT

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

Kevin Risden updated SOLR-9066:
-------------------------------
    Attachment: SOLR-9066.patch

This cleans up a few other items related to Metrics as well.
* getValue returns Number instead of double
* Removes serializable.
* Removes unnecessary boxing

Tests pass locally for me for solr.client.solrj.io.*

> Make CountMetric return long instead of double
> ----------------------------------------------
>
>                 Key: SOLR-9066
>                 URL: https://issues.apache.org/jira/browse/SOLR-9066
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 6.0, master
>            Reporter: Kevin Risden
>         Attachments: SOLR-9066.patch
>
>
> CountMetric currently is forced to return a double when it should return a long. This
causes issues with SQL integration. The Metric abstract class getValue() should be a Number
and not a double. A few minor changes must be made to the other *Metric classes to support
this.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message