Class OCommandExecutorSQLDeleteEdge
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.OCommandExecutorSQLSetAware
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDeleteEdge
- All Implemented Interfaces:
OCommandDistributedReplicateRequest,OCommandExecutor,OCommandResultListener
public class OCommandExecutorSQLDeleteEdge
extends OCommandExecutorSQLSetAware
implements OCommandDistributedReplicateRequest, OCommandResultListener
SQL DELETE EDGE 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.OCommandExecutorSQLSetAware
content, KEYWORD_CONTENT, KEYWORD_SET, parameterCounterFields 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 TypeMethodDescriptionvoidend()Called at the end of processing.Execute the command and return the ODocument object created.The command is replicatedReturns how to manage the distributed result between: CHECK_FOR_EQUALS: all results must be the same MERGE: merges results.Returns the involved clusters.Returns the quorum type for the command: NONE: no quorum READ: configured Read quorum WRITE: configured Write quorum ALL: all nodesintReturns the security operation type use to check about security.parse(OCommandRequest iRequest) Parse the request.booleanDelete the current edge.<RET extends OCommandExecutor>
RETsetLimit(int iLimit) setLimit() for DELETE EDGE is ignored.Methods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLSetAware
convertValue, extractClassFromTarget, getDistributedTimeout, getFieldValueCountingParameters, parseContent, parseJSON, parseSetFieldsMethods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLAbstract
bindDefaultContextVariables, checkClusterAccess, decodeClassName, getInvolvedClustersOfClasses, getInvolvedClustersOfClusters, getInvolvedClustersOfIndex, isIdempotent, parseLock, parseTimeout, preParse, throwParsingException, throwParsingException, throwSyntaxErrorExceptionMethods inherited from class com.orientechnologies.orient.core.command.OCommandExecutorAbstract
checkInterruption, checkInterruption, getContext, getDatabase, getFetchPlan, getLimit, getParameters, getProgressListener, getUndoCommand, init, involveSchema, isCacheable, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, mergeResults, setContext, setProgressListener, toStringMethods 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
getDistributedTimeout, getUndoCommand, isDistributedExecutingOnLocalNodeFirst
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
OCommandExecutorSQLDeleteEdge
public OCommandExecutorSQLDeleteEdge()
-
-
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:
iRequest- Command request implementation.- Returns:
- See Also:
-
#execute(Map<Object, Object>...)
-
execute
Execute the command and return the ODocument object created.- Specified by:
executein interfaceOCommandExecutor- Parameters:
iArgs- Optional variable arguments to pass to the command.- Returns:
- See Also:
-
result
Delete the current edge.- Specified by:
resultin interfaceOCommandResultListener- Parameters:
iRecord- Current record- Returns:
- True to continue the query, otherwise false
-
getSyntax
- Specified by:
getSyntaxin interfaceOCommandExecutor- Overrides:
getSyntaxin classOBaseParser
-
end
public void end()Description copied from interface:OCommandResultListenerCalled at the end of processing. This is useful to clean-up local attributes.- Specified by:
endin interfaceOCommandResultListener
-
getSecurityOperationType
public int getSecurityOperationType()Description copied from interface:OCommandExecutorReturns the security operation type use to check about security.- Specified by:
getSecurityOperationTypein interfaceOCommandExecutor- Overrides:
getSecurityOperationTypein classOCommandExecutorAbstract- Returns:
- See Also:
-
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
-
getDistributedResultManagement
Description copied from interface:OCommandDistributedReplicateRequestReturns how to manage the distributed result between:- CHECK_FOR_EQUALS: all results must be the same
- MERGE: merges results. This is typically used on sharding
- Specified by:
getDistributedResultManagementin interfaceOCommandDistributedReplicateRequest- Overrides:
getDistributedResultManagementin classOCommandExecutorAbstract
-
getResult
- Specified by:
getResultin interfaceOCommandResultListener
-
getDistributedExecutionMode
Description copied from class:OCommandExecutorSQLAbstractThe command is replicated- Specified by:
getDistributedExecutionModein interfaceOCommandDistributedReplicateRequest- Overrides:
getDistributedExecutionModein classOCommandExecutorSQLAbstract
-
getInvolvedClusters
Description copied from interface:OCommandExecutorReturns the involved clusters.- Specified by:
getInvolvedClustersin interfaceOCommandExecutor- Overrides:
getInvolvedClustersin classOCommandExecutorAbstract
-
setLimit
setLimit() for DELETE EDGE is ignored. Please use LIMIT keyword in the SQL statement- Specified by:
setLimitin interfaceOCommandExecutor- Overrides:
setLimitin classOCommandExecutorAbstract
-