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)