Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

QDigest does not implement neither Serializable nor Externalizable #102

Open
staslev opened this issue Jan 26, 2016 · 2 comments
Open

QDigest does not implement neither Serializable nor Externalizable #102

staslev opened this issue Jan 26, 2016 · 2 comments

Comments

@staslev
Copy link

staslev commented Jan 26, 2016

Hi guys,

I was wondering if the fact that QDigest does not implement neither Serializable nor Externalizable is intentional?
I'm afraid it prevents QDigest from being serialized using ObjectOutputStream, which could be very useful (and for better or worse is still a quite common way to serialize stuff).

Unless I'm missing something, it would be pretty straight forward to fix, since QDigest already provides a serialize and deserialize methods, they just need to be exposed as part of the standard Java serialization interfaces.

What do you think?
It it makes sense, I'd be more than willing to create a pull request.

-Stas

@tea-dragon
Copy link
Contributor

Can't think of any intentional reason other than possibly reducing code noise. It seems reasonable to add and shouldn't cause any backwards compatibility issues that I can think of.

I know we've done the same for other data structures before as needed.

@abramsm
Copy link
Contributor

abramsm commented Jan 27, 2016

Our QDigest implementation has fallen behind latest implementations
available. Doesn't necessarily need to be added to this ticket but we
should look into updating our implementation to match best available.

On Tue, Jan 26, 2016 at 6:54 PM Ian Barfield [email protected]
wrote:

Can't think of any intentional reason other than possibly reducing code
noise. It seems reasonable to add and shouldn't cause any backwards
compatibility issues that I can think of.

I know we've done the same for other data structures before as needed.


Reply to this email directly or view it on GitHub
#102 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants