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

[7.x] Add helper functions for ByteSizeValues of a given unit (#63679) #63707

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

benwtrent
Copy link
Member

Backports the following commits to 7.x:

As a developer that periodically worries about absolute sizes of bytes, I love our good ByteSizeValue abstractions + and the unit sizes.

But, I find the pattern `new ByteSizeValue(<some long>, <some unit>).getBytes()` frustrating. 

This commit adds some simple convenience methods for each byte unit and constructing a ByteSizeValue of the given size for that unit.
@benwtrent benwtrent added :ml Machine learning backport labels Oct 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (:ml)

@benwtrent benwtrent added :Core/Features/Features and removed :ml Machine learning labels Oct 14, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Features)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Oct 14, 2020
@benwtrent benwtrent merged commit 4c333f9 into elastic:7.x Oct 14, 2020
@benwtrent benwtrent deleted the backport/7.x/pr-63679 branch October 14, 2020 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Team:Data Management Meta label for data/management team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants