Class OCommandExecutorSQLDelegate
java.lang.Object
com.orientechnologies.common.parser.OBaseParser
com.orientechnologies.orient.core.command.OCommandExecutorAbstract
com.orientechnologies.orient.core.sql.OCommandExecutorSQLAbstract
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate
- All Implemented Interfaces:
OCommandDistributedReplicateRequest,OCommandExecutor
- Direct Known Subclasses:
OCommandExecutorSQLExplain,OCommandExecutorSQLResultsetDelegate,OCommandExecutorSQLTransactional
public class OCommandExecutorSQLDelegate
extends OCommandExecutorSQLAbstract
implements OCommandDistributedReplicateRequest
SQL UPDATE command.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE, OCommandDistributedReplicateRequest.DISTRIBUTED_RESULT_MGMT, OCommandDistributedReplicateRequest.QUORUM_TYPE -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLAbstract
CLASS_PREFIX, CLUSTER_PREFIX, DEFAULT_PARAM_USER, DICTIONARY_PREFIX, INDEX_PREFIX, INDEX_VALUES_ASC_PREFIX, INDEX_VALUES_DESC_PREFIX, INDEX_VALUES_PREFIX, KEYWORD_FROM, KEYWORD_KEY, KEYWORD_LET, KEYWORD_LIMIT, KEYWORD_LOCK, KEYWORD_OFFSET, KEYWORD_RETURN, KEYWORD_RID, KEYWORD_SKIP, KEYWORD_TIMEOUT, KEYWORD_UNSAFE, KEYWORD_WHERE, METADATA_DATABASE, METADATA_DISTRIBUTED, METADATA_INDEXMGR, METADATA_PREFIX, METADATA_SCHEMA, METADATA_STORAGE, preParsedStatement, timeoutMs, timeoutStrategyFields 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.longReturns the distributed timeout in milliseconds.Returns the involved clusters.Returns the quorum type for the command: NONE: no quorum READ: configured Read quorum WRITE: configured Write quorum ALL: all nodesbooleanReturns true if the command results can be cached.booleanReturns true if the command doesn't change the database, otherwise false.parse(OCommandRequest iCommand) Parse the request.toString()Methods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLAbstract
bindDefaultContextVariables, checkClusterAccess, decodeClassName, getDistributedExecutionMode, getInvolvedClustersOfClasses, getInvolvedClustersOfClusters, getInvolvedClustersOfIndex, parseLock, parseTimeout, preParse, throwParsingException, throwParsingException, throwSyntaxErrorExceptionMethods inherited from class com.orientechnologies.orient.core.command.OCommandExecutorAbstract
checkInterruption, checkInterruption, getDatabase, getDistributedResultManagement, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, mergeResults, setContext, setLimit, setProgressListenerMethods inherited from class com.orientechnologies.common.parser.OBaseParser
getLastWordLength, 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.OCommandDistributedReplicateRequest
getDistributedExecutionMode, getDistributedResultManagement, getUndoCommand, isDistributedExecutingOnLocalNodeFirst
-
Field Details
-
delegate
-
-
Constructor Details
-
OCommandExecutorSQLDelegate
public OCommandExecutorSQLDelegate()
-
-
Method Details
-
parse
Description copied from interface:OCommandExecutorParse the request. Once parsed the command can be executed multiple times by using the execute() method.- Specified by:
parsein interfaceOCommandExecutor- Parameters:
iCommand- Command request implementation.- Returns:
- See Also:
-
#execute(Map<Object, Object>...)
-
getDistributedTimeout
public long getDistributedTimeout()Description copied from interface:OCommandDistributedReplicateRequestReturns the distributed timeout in milliseconds.- Specified by:
getDistributedTimeoutin interfaceOCommandDistributedReplicateRequest- Specified by:
getDistributedTimeoutin interfaceOCommandExecutor- Overrides:
getDistributedTimeoutin classOCommandExecutorAbstract
-
execute
Description copied from interface:OCommandExecutorExecute the requested command parsed previously.- Specified by:
executein interfaceOCommandExecutor- Parameters:
iArgs- Optional variable arguments to pass to the command.- Returns:
- See Also:
-
getContext
- Specified by:
getContextin interfaceOCommandExecutor- Overrides:
getContextin classOCommandExecutorAbstract
-
toString
- Overrides:
toStringin classOCommandExecutorAbstract
-
getSyntax
- Specified by:
getSyntaxin interfaceOCommandExecutor- Overrides:
getSyntaxin classOBaseParser
-
getFetchPlan
- Specified by:
getFetchPlanin interfaceOCommandExecutor- Overrides:
getFetchPlanin classOCommandExecutorAbstract
-
isIdempotent
public boolean isIdempotent()Description copied from interface:OCommandExecutorReturns true if the command doesn't change the database, otherwise false.- Specified by:
isIdempotentin interfaceOCommandExecutor- Overrides:
isIdempotentin classOCommandExecutorSQLAbstract
-
getDelegate
-
isCacheable
public boolean isCacheable()Description copied from interface:OCommandExecutorReturns true if the command results can be cached.- Specified by:
isCacheablein interfaceOCommandExecutor- Overrides:
isCacheablein classOCommandExecutorAbstract
-
getQuorumType
Description copied from interface:OCommandDistributedReplicateRequestReturns the quorum type for the command:- NONE: no quorum
- READ: configured Read quorum
- WRITE: configured Write quorum
- ALL: all nodes
- Specified by:
getQuorumTypein interfaceOCommandDistributedReplicateRequest
-
getInvolvedClusters
Description copied from interface:OCommandExecutorReturns the involved clusters.- Specified by:
getInvolvedClustersin interfaceOCommandExecutor- Overrides:
getInvolvedClustersin classOCommandExecutorAbstract
-