-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[core] Add byte to double and long conversion methods to Utils. #657
Conversation
@@ -0,0 +1,124 @@ | |||
/** | |||
* Copyright (c) 2016 Yahoo! Inc. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of Yahoo! Inc. This should be Copyright (c) 2016 YCSB contributors. All rights reserved.
The copyright for the top of |
Roger that, tweaked the copyrights. |
Please update the commit message to start with the impacted module, e.g. "[core] ..." |
* {@link #doubleToBytes}. | ||
* @param bytes The byte array to parse, at least 8 bytes. | ||
* @return A double value read from the byte array. | ||
* @throws IllegalArgumentException if the byte array is not 8 bytes wide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description should match the actual check.
These will be used for brianfrankcooper#653 to write timestamps and numeric values to the ByteIterator maps.
[core] Add byte to double and long conversion methods to Utils.
thanks for the improvement! |
These will be used for #653 to write timestamps and numeric values
to the ByteIterator maps.