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 a UnixEpochTimestampGenerator #656

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

manolama
Copy link
Collaborator

Tied to generating time series workloads: #653

@@ -0,0 +1,188 @@
/**
* 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.

Same goes for the test file.

@manolama
Copy link
Collaborator Author

Fixed up the copyrights, thanks!

@busbey
Copy link
Collaborator

busbey commented Mar 20, 2016

Would you mind updating the commit message to start with the module impacted? In this case it'd be something like "[core] ..."

*/
public class UnixEpochTimestampGenerator extends Generator<Long> {
/** Name and default value for the timestamp interval property. */
public static final String TIMESTAMP_INTERVAL_PROPERTY = "timestamp_interval";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where are these properties getting used? What are they for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They'll be used by the TimeseriesWorkload class once it's ready. I figured it'd be good to stash them here as they could be used by multiple workloads. Or I could just move them there if you think that's better.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Other workloads might want to have multiple timestamps, which would then make these properties confusing. Probably best to keep them in the TimeseriesWorkload.

Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, yanked those guys out and I'll toss 'em in with the TS workload.

@manolama
Copy link
Collaborator Author

Commit message updated, thanks!

busbey added a commit that referenced this pull request Mar 21, 2016
[core] Add a UnixEpochTimestampGenerator
@busbey busbey merged commit 3b8c06d into brianfrankcooper:master Mar 21, 2016
@busbey
Copy link
Collaborator

busbey commented Mar 21, 2016

thanks!

@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