public class OCommandExecutorSQLInsert extends OCommandExecutorSQLSetAware implements OCommandDistributedReplicateRequest, OCommandResultListener
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE, OCommandDistributedReplicateRequest.DISTRIBUTED_RESULT_MGMT, OCommandDistributedReplicateRequest.QUORUM_TYPE
Modifier and Type | Field and Description |
---|---|
static String |
KEYWORD_INSERT |
protected static String |
KEYWORD_RETURN |
content, KEYWORD_CONTENT, KEYWORD_SET, parameterCounter
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_RID, KEYWORD_SKIP, KEYWORD_TIMEOUT, KEYWORD_UNSAFE, KEYWORD_WHERE, METADATA_DATABASE, METADATA_INDEXMGR, METADATA_PREFIX, METADATA_SCHEMA, METADATA_STORAGE, preParsedStatement, timeoutMs, timeoutStrategy
context, limit, parameters, progressListener
parserText, parserTextUpperCase
Constructor and Description |
---|
OCommandExecutorSQLInsert() |
Modifier and Type | Method and Description |
---|---|
void |
end()
Called at the end of processing.
|
Object |
execute(Map<Object,Object> iArgs)
Execute the INSERT and return the ODocument object created.
|
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE |
getDistributedExecutionMode()
The command is replicated
|
Set<String> |
getInvolvedClusters()
Returns the involved clusters.
|
OCommandDistributedReplicateRequest.QUORUM_TYPE |
getQuorumType()
Returns the quorum type for the command:
NONE: no quorum
READ: configured Read quorum
WRITE: configured Write quorum
ALL: all nodes
|
Object |
getResult() |
String |
getSyntax() |
OCommandExecutorSQLInsert |
parse(OCommandRequest iRequest)
Parse the request.
|
protected void |
parseReturn(Boolean subQueryExpected)
Parses the returning keyword if found.
|
protected void |
parseValues() |
protected Object |
prepareReturnItem(ODocument item) |
protected Object |
prepareReturnResult(List<ODocument> res) |
boolean |
result(Object iRecord)
This method is called for each result.
|
protected void |
saveRecord(ORecord rec) |
convertValue, extractClassFromTarget, getDistributedTimeout, getFieldValueCountingParameters, parseContent, parseJSON, parseSetFields
bindDefaultContextVariables, checkClusterAccess, decodeClassName, getInvolvedClustersOfClasses, getInvolvedClustersOfClusters, getInvolvedClustersOfIndex, isIdempotent, parseLock, parseTimeout, preParse, throwParsingException, throwParsingException, throwSyntaxErrorException
checkInterruption, checkInterruption, getContext, getDatabase, getDistributedResultManagement, getFetchPlan, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isCacheable, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, mergeResults, setContext, setLimit, setProgressListener, toString, upperCase
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, parserSkipWhiteSpaces
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDistributedResultManagement, getDistributedTimeout, getUndoCommand, isDistributedExecutingOnLocalNodeFirst
public static final String KEYWORD_INSERT
protected static final String KEYWORD_RETURN
public OCommandExecutorSQLInsert parse(OCommandRequest iRequest)
OCommandExecutor
parse
in interface OCommandExecutor
iRequest
- Command request implementation.#execute(Map
public Object execute(Map<Object,Object> iArgs)
execute
in interface OCommandExecutor
iArgs
- Optional variable arguments to pass to the command.OCommandExecutor.parse(OCommandRequest)
public OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE getDistributedExecutionMode()
OCommandExecutorSQLAbstract
getDistributedExecutionMode
in interface OCommandDistributedReplicateRequest
getDistributedExecutionMode
in class OCommandExecutorSQLAbstract
public Set<String> getInvolvedClusters()
OCommandExecutor
getInvolvedClusters
in interface OCommandExecutor
getInvolvedClusters
in class OCommandExecutorAbstract
public String getSyntax()
getSyntax
in interface OCommandExecutor
getSyntax
in class OBaseParser
public boolean result(Object iRecord)
OCommandResultListener
result
in interface OCommandResultListener
iRecord
- Current recordpublic void end()
OCommandResultListener
end
in interface OCommandResultListener
protected void saveRecord(ORecord rec)
protected void parseValues()
protected void parseReturn(Boolean subQueryExpected) throws OCommandSQLParsingException
OCommandSQLParsingException
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
OCommandDistributedReplicateRequest
getQuorumType
in interface OCommandDistributedReplicateRequest
public Object getResult()
getResult
in interface OCommandResultListener
Copyright © 2009–2020 OrientDB. All rights reserved.