Skip to content

Commit

Permalink
modify filterExpiredResultFromFromBackend to filterExpiredResultFromB…
Browse files Browse the repository at this point in the history
…ackend (GraphTransaction.java)
  • Loading branch information
KeePromMise committed May 8, 2023
1 parent 2622ab7 commit bd90ce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ protected Iterator<HugeVertex> queryVerticesFromBackend(Query query) {

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
Expand Down Expand Up @@ -1028,7 +1028,7 @@ protected Iterator<HugeEdge> queryEdgesFromBackend(Query query) {
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
Expand Down Expand Up @@ -1752,8 +1752,7 @@ private boolean rightResultFromIndexQuery(Query query, HugeElement elem) {
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;
Expand Down
6 changes: 0 additions & 6 deletions hugegraph-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
<artifactId>hugegraph-dist</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.janeluo</groupId>
<artifactId>ikanalyzer</artifactId>
<version>2012_u6</version>
<scope>runtime</scope>
</dependency>
</dependencies>

<build>
Expand Down

0 comments on commit bd90ce8

Please sign in to comment.