Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adnan Ahmad
YCSB
Commits
d04d9325
Commit
d04d9325
authored
7 years ago
by
Chris Larsen
Browse files
Options
Downloads
Patches
Plain Diff
[core] Add an operation enum to the Workload class. This can eventually
be used to replace the strings.
parent
e4aecc1b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/java/com/yahoo/ycsb/Workload.java
+9
-0
9 additions, 0 deletions
core/src/main/java/com/yahoo/ycsb/Workload.java
with
9 additions
and
0 deletions
core/src/main/java/com/yahoo/ycsb/Workload.java
+
9
−
0
View file @
d04d9325
...
...
@@ -43,6 +43,15 @@ public abstract class Workload {
private
volatile
AtomicBoolean
stopRequested
=
new
AtomicBoolean
(
false
);
/** Operations available for a database. */
public
enum
Operation
{
READ
,
UPDATE
,
INSERT
,
SCAN
,
DELETE
}
/**
* Initialize the scenario. Create any generators and other shared objects here.
* Called once, in the main client thread, before any operations are started.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment