Skip to content

Commit 64f6455

Browse files
committed
change to Collection.sort to support earlier java version
1 parent 5cd6ab6 commit 64f6455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/elasticsearch/plugin/nlpcn/HashJoinElasticExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ public List<InternalSearchHit> innerRun() throws IOException, SqlParseException
7676
t2Alias);
7777
}
7878
if(firstTableRequest.getOriginalSelect().isOrderdSelect()){
79-
combinedResult.sort(new Comparator<InternalSearchHit>() {
79+
Collections.sort(combinedResult,new Comparator<InternalSearchHit>() {
8080
@Override
8181
public int compare(InternalSearchHit o1, InternalSearchHit o2) {
8282
return o1.docId() - o2.docId();
8383
}
8484
});
85+
8586
}
8687
return combinedResult;
8788
}

0 commit comments

Comments
 (0)