Class OCommandGremlinExecutor
java.lang.Object
com.orientechnologies.common.parser.OBaseParser
com.orientechnologies.orient.core.command.OCommandExecutorAbstract
com.orientechnologies.orient.graph.gremlin.OCommandGremlinExecutor
- All Implemented Interfaces:
OCommandExecutor
Executes a GREMLIN command.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OCommandExecutorAbstract
context, limit, parameters, progressListenerFields inherited from class com.orientechnologies.common.parser.OBaseParser
parserText, parserTextUpperCase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute the requested command parsed previously.booleanReturns true if the command doesn't change the database, otherwise false.<RET extends OCommandExecutor>
RETparse(OCommandRequest iRequest) Parse the request.protected voidthrowSyntaxErrorException(String iText) Throws a syntax error exception.Methods inherited from class com.orientechnologies.orient.core.command.OCommandExecutorAbstract
checkInterruption, checkInterruption, getContext, getDatabase, getDistributedResultManagement, getDistributedTimeout, getFetchPlan, getInvolvedClusters, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isCacheable, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, mergeResults, setContext, setLimit, setProgressListener, toStringMethods inherited from class com.orientechnologies.common.parser.OBaseParser
getLastWordLength, getSyntax, getWordStatic, nextWord, nextWord, parseOptionalWord, parserGetCurrentChar, parserGetCurrentPosition, parserGetLastSeparator, parserGetLastWord, parserGetPreviousPosition, parserGoBack, parserIsEnded, parserMoveCurrentPosition, parserNextChars, parserNextWord, parserNextWord, parserNextWord, parserOptionalKeyword, parserOptionalWord, parserRequiredKeyword, parserRequiredWord, parserRequiredWord, parserRequiredWord, parserSetCurrentPosition, parserSetEndOfText, parserSetLastSeparator, parserSkipWhiteSpacesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.command.OCommandExecutor
getSyntax
-
Constructor Details
-
OCommandGremlinExecutor
public OCommandGremlinExecutor()
-
-
Method Details
-
parse
Description copied from interface:OCommandExecutorParse 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
Description copied from interface:OCommandExecutorExecute 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:OCommandExecutorReturns true if the command doesn't change the database, otherwise false. -
throwSyntaxErrorException
Description copied from class:OBaseParserThrows a syntax error exception.- Specified by:
throwSyntaxErrorExceptionin classOBaseParser- Parameters:
iText- Text about the problem.
-