Skip to content
Snippets Groups Projects
Commit a1341270 authored by Kevin Risden's avatar Kevin Risden
Browse files

Merge pull request #629 from kruthar/orientdb-scan-readall

[orientdb] fixed scan with readallfields
parents 309084e4 7af9ff19
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment