Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YCSB
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
14399c90
Unverified
Commit
14399c90
authored
8 years ago
by
Camilo Aguilar
Browse files
Options
Downloads
Patches
Plain Diff
[bigtable] Bigtable uses 1ms granularity.
Fixes #733
parent
76e44c3c
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
googlebigtable/src/main/java/com/yahoo/ycsb/db/GoogleBigtableClient.java
+3
-1
3 additions, 1 deletion
...src/main/java/com/yahoo/ycsb/db/GoogleBigtableClient.java
with
3 additions
and
1 deletion
googlebigtable/src/main/java/com/yahoo/ycsb/db/GoogleBigtableClient.java
+
3
−
1
View file @
14399c90
...
...
@@ -365,7 +365,9 @@ public class GoogleBigtableClient extends com.yahoo.ycsb.DB {
setCellBuilder
.
setFamilyNameBytes
(
ByteStringer
.
wrap
(
columnFamilyBytes
));
setCellBuilder
.
setColumnQualifier
(
ByteStringer
.
wrap
(
entry
.
getKey
().
getBytes
()));
setCellBuilder
.
setValue
(
ByteStringer
.
wrap
(
entry
.
getValue
().
toArray
()));
setCellBuilder
.
setTimestampMicros
(
System
.
nanoTime
()
/
1000
);
// Bigtable uses a 1ms granularity
setCellBuilder
.
setTimestampMicros
(
System
.
currentTimeMillis
()
*
1000
);
}
try
{
...
...
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