Skip to content

ARROW-6247: [Java] Provide a common interface for float4 and float8 vectors - #5132

Closed
liyafan82 wants to merge 1 commit into
apache:masterfrom
liyafan82:fly_0820_float
Closed

ARROW-6247: [Java] Provide a common interface for float4 and float8 vectors#5132
liyafan82 wants to merge 1 commit into
apache:masterfrom
liyafan82:fly_0820_float

Conversation

@liyafan82

Copy link
Copy Markdown
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

@fsaintjacquesfsaintjacques changed the title [ARROW-6247][Java] Provide a common interface for float4 and float8 vectorsARROW-6247: [Java] Provide a common interface for float4 and float8 vectorsAug 20, 2019
@emkornfield

Copy link
Copy Markdown
Contributor

@jacques-n thoughts on this?

@emkornfield

Copy link
Copy Markdown
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
Closesapache#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 freeto 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

@liyafan82@emkornfield@fsaintjacques