You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Liya Fan (JIRA)" <ji...@apache.org> on 2019/08/15 02:29:00 UTC

[jira] [Created] (ARROW-6245) [DISCUSS][Java] Provide an interface for numeric vectors

Liya Fan created ARROW-6245:
-------------------------------

             Summary: [DISCUSS][Java] Provide an interface for numeric vectors
                 Key: ARROW-6245
                 URL: https://issues.apache.org/jira/browse/ARROW-6245
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
            Reporter: Liya Fan
            Assignee: Liya Fan


We want to provide an interface for all vectors with numeric types (small int, float4, float8, etc). This interface will make it convenient for many operations on a vector, like average, sum, variance, etc. With this interface, the client code will be greatly simplified, with many branches/switch removed.

 

The design is similar to BaseIntVector (the interface for all integer vectors). We provide 3 methods for setting & getting numeric values:

         setWithPossibleRounding

         setSafeWithPossibleRounding

         getValueAsDouble



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)