Class OCommandExecutorAbstract
java.lang.Object
com.orientechnologies.common.parser.OBaseParser
com.orientechnologies.orient.core.command.OCommandExecutorAbstract
- All Implemented Interfaces:
OCommandExecutor
- Direct Known Subclasses:
OCommandExecutorFunction,OCommandExecutorScript,OCommandExecutorSQLAbstract,OCommandGremlinExecutor
Abstract implementation of Executor Command interface.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OCommandContextprotected intprotected OProgressListenerFields inherited from class com.orientechnologies.common.parser.OBaseParser
parserText, parserTextUpperCase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic booleancheckInterruption(OCommandContext iContext) static ODatabaseDocumentInternallongReturns the involved clusters.intgetLimit()intReturns the security operation type use to check about security.init(OCommandRequestText iRequest) booleanbooleanReturns true if the command results can be cached.booleanbooleanReturns true if the command must be executed on local node on distributed configuration.mergeResults(Map<String, Object> results) voidsetContext(OCommandContext iContext) <RET extends OCommandExecutor>
RETsetLimit(int iLimit) <RET extends OCommandExecutor>
RETsetProgressListener(OProgressListener progressListener) Set the listener invoked while the command is executing.toString()Methods 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, parserSkipWhiteSpaces, throwSyntaxErrorExceptionMethods 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
execute, getSyntax, isIdempotent, parse
-
Field Details
-
progressListener
-
limit
protected int limit -
parameters
-
context
-
-
Constructor Details
-
OCommandExecutorAbstract
public OCommandExecutorAbstract()
-
-
Method Details
-
getDatabase
-
init
-
toString
-
getProgressListener
-
setProgressListener
Description copied from interface:OCommandExecutorSet the listener invoked while the command is executing.- Specified by:
setProgressListenerin interfaceOCommandExecutor- Parameters:
progressListener- OProgressListener implementation- Returns:
-
getUndoCommand
-
getDistributedTimeout
public long getDistributedTimeout()- Specified by:
getDistributedTimeoutin interfaceOCommandExecutor
-
getLimit
public int getLimit() -
setLimit
- Specified by:
setLimitin interfaceOCommandExecutor
-
getParameters
- Specified by:
getParametersin interfaceOCommandExecutor
-
getFetchPlan
- Specified by:
getFetchPlanin interfaceOCommandExecutor
-
getContext
- Specified by:
getContextin interfaceOCommandExecutor
-
setContext
- Specified by:
setContextin interfaceOCommandExecutor
-
getInvolvedClusters
Description copied from interface:OCommandExecutorReturns the involved clusters.- Specified by:
getInvolvedClustersin interfaceOCommandExecutor
-
getSecurityOperationType
public int getSecurityOperationType()Description copied from interface:OCommandExecutorReturns the security operation type use to check about security.- Specified by:
getSecurityOperationTypein interfaceOCommandExecutor- Returns:
- See Also:
-
involveSchema
public boolean involveSchema()- Specified by:
involveSchemain interfaceOCommandExecutor
-
checkInterruption
protected boolean checkInterruption() -
checkInterruption
-
getDistributedResultManagement
-
isLocalExecution
public boolean isLocalExecution()Description copied from interface:OCommandExecutorReturns true if the command must be executed on local node on distributed configuration.- Specified by:
isLocalExecutionin interfaceOCommandExecutor
-
isCacheable
public boolean isCacheable()Description copied from interface:OCommandExecutorReturns true if the command results can be cached.- Specified by:
isCacheablein interfaceOCommandExecutor
-
mergeResults
- Specified by:
mergeResultsin interfaceOCommandExecutor- Throws:
Exception
-
isDistributedExecutingOnLocalNodeFirst
public boolean isDistributedExecutingOnLocalNodeFirst()
-