-
Notifications
You must be signed in to change notification settings - Fork 128
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
Implement mathematical operators #553
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #553 +/- ##
============================================
+ Coverage 89.73% 90.14% +0.40%
- Complexity 2913 3001 +88
============================================
Files 380 392 +12
Lines 11513 11666 +153
Branches 1450 1461 +11
============================================
+ Hits 10331 10516 +185
+ Misses 605 587 -18
+ Partials 577 563 -14
|
Ladicek
reviewed
May 10, 2021
Ladicek
reviewed
May 10, 2021
jponge
requested changes
May 10, 2021
maths/src/main/java/io/smallrye/mutiny/maths/AverageOperator.java
Outdated
Show resolved
Hide resolved
maths/src/main/java/io/smallrye/mutiny/maths/AverageOperator.java
Outdated
Show resolved
Hide resolved
maths/src/main/java/io/smallrye/mutiny/maths/AverageOperator.java
Outdated
Show resolved
Hide resolved
maths/src/main/java/io/smallrye/mutiny/maths/AverageOperator.java
Outdated
Show resolved
Hide resolved
maths/src/main/java/io/smallrye/mutiny/maths/OccurrenceOperator.java
Outdated
Show resolved
Hide resolved
cescoffier
force-pushed
the
add-maths
branch
3 times, most recently
from
May 11, 2021 07:37
c14d8e4
to
953758b
Compare
I have added:
|
* count - emits the number of items emitted by the upstream * index - emits `Tuple2<Long, T>` for each item from the upstream. The first element of the tuple is the index (0-based), and the second if the item * min / max - emits the min/max item from the upstream, using Java comparator * top(x) - emits the top x items from the upstream, a new ranking is emitted every time it changes. * sum - emits the sum of all the items emitted by the upstream * average - emits the average of all the items emitted by the upstream * median - emits the median of all the items emitted by the upstream * statistic - emits statistics about the emitted items
jponge
approved these changes
May 19, 2021
jponge
added
enhancement
New feature or request
noteworthy-feature
Noteworthy feature
labels
May 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provides:
Tuple2<Long, T>
for each item from the upstream. The first element of the tuple is the index (0-based), and the second if the item