You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2023/05/08 12:55:07 UTC
[incubator-hugegraph] branch master updated: fix: remove dup 'From' in filterExpiredResultFromFromBackend (#2207)
This is an automated email from the ASF dual-hosted git repository.
jin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new 0f2faf48d fix: remove dup 'From' in filterExpiredResultFromFromBackend (#2207)
0f2faf48d is described below
commit 0f2faf48dc0799b22b811af323e6eec25dff881a
Author: KeeProMise <38...@users.noreply.github.com>
AuthorDate: Mon May 8 20:55:02 2023 +0800
fix: remove dup 'From' in filterExpiredResultFromFromBackend (#2207)
---
.../java/org/apache/hugegraph/backend/tx/GraphTransaction.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java
index cca5e2240..ea1196eae 100644
--- a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java
+++ b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/tx/GraphTransaction.java
@@ -824,7 +824,7 @@ public class GraphTransaction extends IndexableTransaction {
Iterator<HugeVertex> vertices = new MapperIterator<>(entries,
this::parseEntry);
- vertices = this.filterExpiredResultFromFromBackend(query, vertices);
+ vertices = this.filterExpiredResultFromBackend(query, vertices);
if (!this.store().features().supportsQuerySortByInputIds()) {
// There is no id in BackendEntry, so sort after deserialization
@@ -1028,7 +1028,7 @@ public class GraphTransaction extends IndexableTransaction {
return new ListIterator<>(ImmutableList.copyOf(vertex.getEdges()));
});
- edges = this.filterExpiredResultFromFromBackend(query, edges);
+ edges = this.filterExpiredResultFromBackend(query, edges);
if (!this.store().features().supportsQuerySortByInputIds()) {
// There is no id in BackendEntry, so sort after deserialization
@@ -1752,8 +1752,7 @@ public class GraphTransaction extends IndexableTransaction {
return false;
}
- private <T extends HugeElement> Iterator<T>
- filterExpiredResultFromFromBackend(
+ private <T extends HugeElement> Iterator<T> filterExpiredResultFromBackend(
Query query, Iterator<T> results) {
if (this.store().features().supportsTtl() || query.showExpired()) {
return results;