Class OCommandGremlinExecutor

All Implemented Interfaces:
OCommandExecutor

public class OCommandGremlinExecutor extends OCommandExecutorAbstract
Executes a GREMLIN command.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Constructor Details

    • OCommandGremlinExecutor

      public OCommandGremlinExecutor()
  • Method Details

    • parse

      public <RET extends OCommandExecutor> RET parse(OCommandRequest iRequest)
      Description copied from interface: OCommandExecutor
      Parse the request. Once parsed the command can be executed multiple times by using the execute() method.
      Parameters:
      iRequest - Command request implementation.
      Returns:
      See Also:
      • #execute(Map<Object, Object>...)
    • execute

      public Object execute(Map<Object,Object> iArgs)
      Description copied from interface: OCommandExecutor
      Execute the requested command parsed previously.
      Parameters:
      iArgs - Optional variable arguments to pass to the command.
      Returns:
      See Also:
    • isIdempotent

      public boolean isIdempotent()
      Description copied from interface: OCommandExecutor
      Returns true if the command doesn't change the database, otherwise false.
    • throwSyntaxErrorException

      protected void throwSyntaxErrorException(String iText)
      Description copied from class: OBaseParser
      Throws a syntax error exception.
      Specified by:
      throwSyntaxErrorException in class OBaseParser
      Parameters:
      iText - Text about the problem.