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
e5295dd9
Commit
e5295dd9
authored
9 years ago
by
Jaemyoun
Browse files
Options
Downloads
Patches
Plain Diff
remove unnecessary comments
parent
2bf107f9
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
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
+2
-6
2 additions, 6 deletions
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
with
2 additions
and
6 deletions
rados/src/main/java/com/yahoo/ycsb/db/RadosClient.java
+
2
−
6
View file @
e5295dd9
...
...
@@ -22,12 +22,11 @@ import java.util.Set;
import
java.util.Vector
;
import
org.json.JSONObject
;
// import org.json.JSONString;
/**
* YCSB binding for <a href="http://
redis.io/">Redis
</a>.
* YCSB binding for <a href="http://
ceph.org/">RADOS of Ceph
</a>.
*
* See {@code r
edi
s/README.md} for details.
* See {@code r
ado
s/README.md} for details.
*/
public
class
RadosClient
extends
DB
{
...
...
@@ -100,7 +99,6 @@ public class RadosClient extends DB {
for
(
String
name
:
fieldsToReturn
)
{
result
.
put
(
name
,
new
StringByteIterator
(
json
.
getString
(
name
)));
// result.put(name, new StringByteIterator(json.getJSONString(name).getString()));
}
return
result
.
isEmpty
()
?
Status
.
ERROR
:
Status
.
OK
;
...
...
@@ -108,8 +106,6 @@ public class RadosClient extends DB {
@Override
public
Status
insert
(
String
table
,
String
key
,
HashMap
<
String
,
ByteIterator
>
values
)
{
// JSONObject json = new JSONObject(values);
JSONObject
json
=
new
JSONObject
();
for
(
final
Entry
<
String
,
ByteIterator
>
e
:
values
.
entrySet
())
{
json
.
put
(
e
.
getKey
(),
e
.
getValue
().
toString
());
...
...
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