Skip to content

Commit 434c6b3

Browse files
committed
fix: handled index one case after refactor
1 parent c59b42c commit 434c6b3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/OAbstractPaginatedStorage.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2644,7 +2644,11 @@ private Stream<ORID> doGetIndexValue(final int indexId, final Object key)
26442644
assert indexId == engine.getId();
26452645
Object result = ((OIndexEngine) engine).get(key);
26462646
if (result != null) {
2647-
return ((Collection<ORID>) result).stream();
2647+
if (result instanceof ORID) {
2648+
return Stream.of((ORID) result);
2649+
} else {
2650+
return ((Collection<ORID>) result).stream();
2651+
}
26482652
} else {
26492653
return Stream.empty();
26502654
}

0 commit comments

Comments
 (0)