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

Column creation from streams #634

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Column creation from streams #634

merged 1 commit into from
Aug 26, 2019

Conversation

benmccann
Copy link
Collaborator

Thanks for contributing.

Description

I use Java 8 streams a lot. This makes column creation a bit easier

Copy link
Collaborator

@lwhite1 lwhite1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, @benmccann. Would you mind adding support for floats and shorts?

@benmccann
Copy link
Collaborator Author

The reason I didn't add support for floats and shorts is that the Java Stream API only supports map to object, int, long, and double. I suppose for float I could take a DoubleStream and for short I could take an IntStream, but I wasn't sure if it was worth adding that or not

@lwhite1
Copy link
Collaborator

lwhite1 commented Aug 25, 2019 via email

@benmccann
Copy link
Collaborator Author

Ok. I've updated it to use Stream<Float>, etc.

@lwhite1 lwhite1 merged commit 67cbfed into master Aug 26, 2019
@benmccann benmccann deleted the stream-create branch September 3, 2019 15:51
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

Successfully merging this pull request may close these issues.

2 participants