lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3862) DocValues getInt() returns long, getFloat() returns double
Date Sun, 11 Mar 2012 17:56:57 GMT

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

Simon Willnauer commented on LUCENE-3862:
-----------------------------------------

actually I really don't want this! this increases the complexity. The interface says it can
provide Bytes, Integers and Floats independent of their internal encoding or max size. With
those methods in place we just gonna cast around which should be done by the user of the API.
                
> DocValues getInt() returns long, getFloat() returns double
> ----------------------------------------------------------
>
>                 Key: LUCENE-3862
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3862
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 4.0
>            Reporter: Robert Muir
>
> I think this is a bit confusing: especially for the case of something like norms
> where its really an 8 bit byte, a long is confusing.
> i think we should have the usual getFloat/getDouble/getInt/getShort/getByte instead?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message