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

[core] Add byte to double and long conversion methods to Utils. #657

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

manolama
Copy link
Collaborator

These will be used for #653 to write timestamps and numeric values
to the ByteIterator maps.

@@ -0,0 +1,124 @@
/**
* Copyright (c) 2016 Yahoo! Inc. All rights reserved.
Copy link
Collaborator

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.

@risdenk
Copy link
Collaborator

risdenk commented Mar 17, 2016

The copyright for the top of Utils.java should be Copyright (c) 2010 Yahoo! Inc., 2016 YCSB contributors. All rights reserved.`

@manolama
Copy link
Collaborator Author

Roger that, tweaked the copyrights.

@busbey
Copy link
Collaborator

busbey commented Mar 20, 2016

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.
Copy link
Collaborator

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.
busbey added a commit that referenced this pull request Mar 21, 2016
[core] Add byte to double and long conversion methods to Utils.
@busbey busbey merged commit 4d44594 into brianfrankcooper:master Mar 21, 2016
@busbey
Copy link
Collaborator

busbey commented Mar 21, 2016

thanks for the improvement!

@cmatser cmatser mentioned this pull request Apr 2, 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

Successfully merging this pull request may close these issues.

3 participants