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
34246fba
Commit
34246fba
authored
9 years ago
by
ivan
Browse files
Options
Downloads
Patches
Plain Diff
added doc about fieldlength and fieldcount
parent
52891afe
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
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
+8
-2
8 additions, 2 deletions
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
with
8 additions
and
2 deletions
s3/src/main/java/com/yahoo/ycsb/db/S3Client.java
+
8
−
2
View file @
34246fba
...
...
@@ -43,7 +43,12 @@ import com.amazonaws.services.s3.model.S3ObjectSummary;
* s3.secretKey=secret key S3 aws
* s3.endPoint=s3.amazonaws.com
* s3.region=us-east-1
*
* The parameter table is the name of the Bucket where to upload the files. This must be created before to start the benchmark
* The size of the file to upload is determined by two parameters:
* - fieldcount this is the number of fields of a record in YCSB
* - fieldlength this is the size in bytes of a single field in the record
* together these two parameters define the size of the file to upload, the size in bytes is given by the fieldlength multiplied by the fieldcount.
* The name of the file is determined by the parameter key. This key is automatically generated by YCSB.
* @author ivanB1975
*/
public
class
S3Client
extends
DB
{
...
...
@@ -135,7 +140,8 @@ public class S3Client extends DB {
* @param key
* The record key of the file to insert.
* @param values
* A HashMap of field/value pairs to insert in the file
* A HashMap of field/value pairs to insert in the file. Only the content of the first field is written to a byteArray
* multiplied by the number of field. In this way the size of the file to upload is determined by the fieldlength and fieldcount parameters.
* @return Zero on success, a non-zero error code on error. See the
* {@link DB} class's description for a discussion of error codes.
*/
...
...
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