org.neo4j.server.webadmin.console
Class GremlinSession
java.lang.Object
org.neo4j.server.webadmin.console.GremlinSession
- All Implemented Interfaces:
- ScriptSession
public class GremlinSession
- extends Object
- implements ScriptSession
Method Summary |
String |
evaluate(String script)
Take some gremlin script, evaluate it in the context of this gremlin
session, and return the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scriptEngine
protected GremlinWebConsole scriptEngine
outputWriter
protected StringWriter outputWriter
GremlinSession
public GremlinSession(Database database)
evaluate
public String evaluate(String script)
- Take some gremlin script, evaluate it in the context of this gremlin
session, and return the result.
- Specified by:
evaluate
in interface ScriptSession
- Parameters:
script
-
- Returns:
- the return string of the evaluation result, or the exception message.
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.