-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: colocate query and stats updates
- Loading branch information
Showing
4 changed files
with
54 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 7 additions & 1 deletion
8
src/main/java/com/neo4j/data/importer/extractors/AttributeExtractor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
package com.neo4j.data.importer.extractors; | ||
|
||
import com.neo4j.data.importer.Statistics; | ||
import java.util.Map; | ||
import java.util.function.Function; | ||
import org.neo4j.graphdb.QueryStatistics; | ||
|
||
public interface AttributeExtractor<T> extends Function<T, Map<String, Object>> {} | ||
public interface AttributeExtractor<T> extends Function<T, Map<String, Object>> { | ||
String query(); | ||
|
||
void updateCounters(QueryStatistics results, Statistics counters); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters