|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.cypher.javacompat.ExecutionEngine
public class ExecutionEngine
To run a Query
, use this class.
Constructor Summary | |
---|---|
ExecutionEngine(GraphDatabaseService database)
Creates an execution engine around the give graph database |
|
ExecutionEngine(GraphDatabaseService database,
org.neo4j.kernel.impl.util.StringLogger logger)
Creates an execution engine around the give graph database |
Method Summary | |
---|---|
ExecutionResult |
execute(String query)
Executes a query and returns an iterable that contains the result set |
ExecutionResult |
execute(String query,
Map<String,Object> params)
Executes a query and returns an iterable that contains the result set |
ExecutionResult |
profile(String query)
Profiles a query and returns an iterable that contains the result set. |
ExecutionResult |
profile(String query,
Map<String,Object> params)
Profiles a query and returns an iterable that contains the result set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionEngine(GraphDatabaseService database)
database
- The database to wrappublic ExecutionEngine(GraphDatabaseService database, org.neo4j.kernel.impl.util.StringLogger logger)
database
- The database to wraplogger
- A logger for cypher-statementsMethod Detail |
---|
public ExecutionResult execute(String query) throws org.neo4j.cypher.SyntaxException
query
- The query to execute
org.neo4j.cypher.SyntaxException
- If the Query contains errors,
a SyntaxException exception might be thrownpublic ExecutionResult execute(String query, Map<String,Object> params) throws org.neo4j.cypher.SyntaxException
query
- The query to executeparams
- Parameters for the query
org.neo4j.cypher.SyntaxException
- If the Query contains errors,
a SyntaxException exception might be thrownpublic ExecutionResult profile(String query) throws org.neo4j.cypher.SyntaxException
query
- The query to profile
org.neo4j.cypher.SyntaxException
- If the Query contains errors,
a SyntaxException exception might be thrownpublic ExecutionResult profile(String query, Map<String,Object> params) throws org.neo4j.cypher.SyntaxException
query
- The query to profileparams
- Parameters for the query
org.neo4j.cypher.SyntaxException
- If the Query contains errors,
a SyntaxException exception might be thrown
|
Neo4j Community | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |