Skip to content

Conversation

@liyafan82
Copy link
Contributor

We want to provide an interface for floating point vectors (float4 & float8). This interface will make it convenient for many operations on a vector. 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 floating point values:

     setWithPossibleTruncate

     setSafeWithPossibleTruncate

     getValueAsDouble

@fsaintjacques fsaintjacques changed the title [ARROW-6247][Java] Provide a common interface for float4 and float8 vectors ARROW-6247: [Java] Provide a common interface for float4 and float8 vectors Aug 20, 2019
@emkornfield
Copy link
Contributor

@jacques-n thoughts on this?

@emkornfield
Copy link
Contributor

+1, seems ok.

pribor pushed a commit to GlobalWebIndex/arrow that referenced this pull request Oct 24, 2025
…ectors

We want to provide an interface for floating point vectors (float4 & float8). This interface will make it convenient for many operations on a vector. 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 floating point values:

         setWithPossibleTruncate

         setSafeWithPossibleTruncate

         getValueAsDouble

Closes apache#5132 from liyafan82/fly_0820_float and squashes the following commits:

984d538 <liyafan82>  Provide a common interface for float4 and float8 vectors

Authored-by: liyafan82 <fan_li_ya@foxmail.com>
Signed-off-by: Micah Kornfield <emkornfield@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants