[英]Neo4j ExecutionEngine and ExecutionResult deprecated?
In Neo4j's neo4j-2.2.0-M03 version, when I try to import 在Neo4j的neo4j-2.2.0-M03版本中,当我尝试导入时
import org.neo4j.cypher.javacompat.ExecutionEngine;
and 和
import org.neo4j.cypher.javacompat.ExecutionResult;
I get a deprecated warning. 我收到了过时的警告。 I can't seem to find what packages I should use instead...
我似乎找不到应该使用的软件包...
Wow, I don't see any deprecation warnings, but using 哇,我看不到任何过时警告,但使用
ExecutionEngine engine = new ExecutionEngine(db, StringLogger.wrap(new OutputStreamWriter(System.out)));
ExecutionResult er = engine.execute(query);
gives me huge memory leak. 给我巨大的内存泄漏。 and this is completely ok
这是完全可以的
GraphDatabaseService graphDb = ...
Result er = graphDb.execute(query);
GraphDatabaseService
provides now a direct way to run a Cypher query using GraphDatabaseService.execute()
. GraphDatabaseService
现在提供了使用GraphDatabaseService.execute()
运行Cypher查询的直接方法。 NB there are two variants of that method one with and one without parameters. 注意,该方法有两种变体,一种带有参数,另一种没有参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.