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
d9b1030e
Commit
d9b1030e
authored
9 years ago
by
Andy Kruth
Browse files
Options
Downloads
Patches
Plain Diff
[orientdb] fixed null pointers with readallfields
parent
78f78838
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
+11
-10
11 additions, 10 deletions
orientdb/src/main/java/com/yahoo/ycsb/db/OrientDBClient.java
with
11 additions
and
10 deletions
orientdb/src/main/java/com/yahoo/ycsb/db/OrientDBClient.java
+
11
−
10
View file @
d9b1030e
...
@@ -280,19 +280,20 @@ public class OrientDBClient extends DB {
...
@@ -280,19 +280,20 @@ public class OrientDBClient extends DB {
int
entrycount
=
0
;
int
entrycount
=
0
;
final
OIndexCursor
entries
=
dictionary
.
getIndex
().
iterateEntriesMajor
(
startkey
,
true
,
true
);
final
OIndexCursor
entries
=
dictionary
.
getIndex
().
iterateEntriesMajor
(
startkey
,
true
,
true
);
while
(
entries
.
hasNext
()
&&
entrycount
<
recordcount
)
{
if
(
fields
!=
null
&&
!
fields
.
isEmpty
())
{
final
Entry
<
Object
,
OIdentifiable
>
entry
=
entries
.
nextEntry
();
while
(
entries
.
hasNext
()
&&
entrycount
<
recordcount
)
{
final
ODocument
document
=
entry
.
getValue
().
getRecord
();
final
Entry
<
Object
,
OIdentifiable
>
entry
=
entries
.
nextEntry
();
final
ODocument
document
=
entry
.
getValue
().
getRecord
();
final
HashMap
<
String
,
ByteIterator
>
map
=
final
HashMap
<
String
,
ByteIterator
>
map
=
new
HashMap
<
String
,
ByteIterator
>();
new
HashMap
<
String
,
ByteIterator
>();
result
.
add
(
map
);
result
.
add
(
map
);
for
(
String
field
:
fields
)
{
for
(
String
field
:
fields
)
{
map
.
put
(
field
,
new
StringByteIterator
((
String
)
document
.
field
(
field
)));
map
.
put
(
field
,
new
StringByteIterator
((
String
)
document
.
field
(
field
)));
}
}
entrycount
++;
entrycount
++;
}
}
}
return
Status
.
OK
;
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