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
a1341270
Commit
a1341270
authored
9 years ago
by
Kevin Risden
Browse files
Options
Downloads
Plain Diff
Merge pull request #629 from kruthar/orientdb-scan-readall
[orientdb] fixed scan with readallfields
parents
309084e4
7af9ff19
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
orientdb/src/main/java/com/yahoo/ycsb/db/OrientDBClient.java
+8
-8
8 additions, 8 deletions
orientdb/src/main/java/com/yahoo/ycsb/db/OrientDBClient.java
with
8 additions
and
8 deletions
orientdb/src/main/java/com/yahoo/ycsb/db/OrientDBClient.java
+
8
−
8
View file @
a1341270
...
...
@@ -280,20 +280,20 @@ public class OrientDBClient extends DB {
int
entrycount
=
0
;
final
OIndexCursor
entries
=
dictionary
.
getIndex
().
iterateEntriesMajor
(
startkey
,
true
,
true
);
if
(
fields
!=
null
&&
!
fields
.
isEmpty
())
{
while
(
entries
.
hasNext
()
&&
entrycount
<
recordcount
)
{
final
OIdentifiable
entry
=
entries
.
next
();
final
ODocument
document
=
entry
.
getRecord
();
while
(
entries
.
hasNext
()
&&
entrycount
<
recordcount
)
{
final
OIdentifiable
entry
=
entries
.
next
();
final
ODocument
document
=
entry
.
getRecord
();
final
HashMap
<
String
,
ByteIterator
>
map
=
new
HashMap
<
String
,
ByteIterator
>();
result
.
add
(
map
);
final
HashMap
<
String
,
ByteIterator
>
map
=
new
HashMap
<
String
,
ByteIterator
>();
result
.
add
(
map
);
if
(
fields
!=
null
&&
!
fields
.
isEmpty
())
{
for
(
String
field
:
fields
)
{
map
.
put
(
field
,
new
StringByteIterator
((
String
)
document
.
field
(
field
)));
}
entrycount
++;
}
entrycount
++;
}
return
Status
.
OK
;
...
...
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