I am interested in parameterizing the Gremlin Query in Java code as we do in case of SQL query using PreparedStatement (example : statement.setString(int, String), statement.setInt(int, int)).
Kindly, please let me know can we do this kind of stuff in Java for Gremlin query.
Thanks in advance.
Regards, Kamal
Check this out at https://github.com/tinkerpop/rexster/wiki/RexPro-Java
When possible, parameterize Gremlin scripts, as this leads to better overall performance. The above example can be done as a parameterized request as follows:
Akshaya