Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new scalar-array write methods for int/long/double cases #277

Closed
cowtowncoder opened this issue May 3, 2016 · 0 comments
Closed

Add new scalar-array write methods for int/long/double cases #277

cowtowncoder opened this issue May 3, 2016 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented May 3, 2016

Since some of binary data formats support efficient representations for arrays of fixed-length scalars, let's add new writeArray(...) value write methods. Adding 3 overloads should suffice for now:

  • 2 main integral types: int, long (we already have writeBinary() for byte arrays)
  • the main floating point type,double`

Although I earlier thought of more general approach that combines this with writeStartArray(), it really seems much simpler, and potentially more efficient, to have unified write.

In future we may also consider addition of alternate sources, if that makes sense (ByteBuffer and variants). Similarly we may consider support for float and perhaps short if there is demand for these.

@cowtowncoder cowtowncoder changed the title (2.8) Add new scalar-array write methods for short/int/long, float/double cases Add new scalar-array write methods for short/int/long, float/double cases May 23, 2016
@cowtowncoder cowtowncoder added this to the 2.8.0 milestone May 23, 2016
@cowtowncoder cowtowncoder changed the title Add new scalar-array write methods for short/int/long, float/double cases Add new scalar-array write methods for int/long/double cases May 23, 2016
cowtowncoder added a commit that referenced this issue May 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant