public class OCommandExecutorSQLLiveSelect extends OCommandExecutorSQLSelect implements OLiveQueryListener
OCommandDistributedReplicateRequest.DISTRIBUTED_EXECUTION_MODE, OCommandDistributedReplicateRequest.DISTRIBUTED_RESULT_MGMT, OCommandDistributedReplicateRequest.QUORUM_TYPE
Modifier and Type | Field and Description |
---|---|
static String |
KEYWORD_LIVE_SELECT |
KEYWORD_ASC, KEYWORD_BY, KEYWORD_DESC, KEYWORD_FETCHPLAN, KEYWORD_GROUP, KEYWORD_NOCACHE, KEYWORD_ORDER, KEYWORD_SELECT, KEYWORD_UNWIND
compiledFilter, KEYWORD_FROM_2FIND, KEYWORD_LET_2FIND, lazyIteration, let, parsedTarget, request, resultCount, serialTempRID, skip, target, tempResult
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_INDEXMGR, METADATA_PREFIX, METADATA_SCHEMA, METADATA_STORAGE, preParsedStatement, timeoutMs, timeoutStrategy
context, limit, parameters, progressListener
parserText, parserTextUpperCase
Constructor and Description |
---|
OCommandExecutorSQLLiveSelect() |
Modifier and Type | Method and Description |
---|---|
protected void |
execInSeparateDatabase(OCallable iCallback) |
Object |
execute(Map<Object,Object> iArgs)
Execute the requested command parsed previously.
|
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
|
void |
onLiveResult(ORecordOperation iOp) |
void |
onLiveResultEnd() |
OCommandExecutorSQLSelect |
parse(OCommandRequest iRequest)
Compile the filter conditions only the first time.
|
addResult, assignTarget, createProjectionFromDefinition, executeSearch, executeSearchRecord, extractProjectionNameSubstringEndPosition, getFetchPlan, getInvolvedClusters, getProjectionDefinition, getProjectionGroup, getProjections, getSyntax, getTemporaryRIDCounter, handleResult, hasGroupBy, initContext, isAnyFunctionAggregates, isUseCache, iterator, iterator, optimizeExecution, parseFetchplan, parseGroupBy, parseNoCache, parseOrderBy, parseProjections, parseUnwind, reportTip, revertProfiler, revertSubclassesProfiler, searchInClasses, setFetchLimit, setFetchPlan, setGroupByFields, setNoCache, setOrderedFields, setParallel, setProjectionDefinition, setProjections
applyLimitAndSkip, assignLetClauses, evaluateRecord, filter, getDistributedExecutionMode, getDistributedResultManagement, getRange, getResult, getResultInstance, getTarget, isCacheable, isIdempotent, isLazyIteration, mergeResults, optimize, optimizeBranch, optimizeFunction, parseLet, parseLimit, parseSkip, pushResult, searchInClasses, searchInClasses, searchInClusters, setCompiledFilter, setLazyIteration, setParsedTarget, setRequest, setTarget
bindDefaultContextVariables, checkClusterAccess, decodeClassName, getInvolvedClustersOfClasses, getInvolvedClustersOfClusters, getInvolvedClustersOfIndex, parseLock, parseTimeout, preParse, throwParsingException, throwParsingException, throwSyntaxErrorException
checkInterruption, checkInterruption, getContext, getDatabase, getDistributedTimeout, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, 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
getDistributedTimeout, getUndoCommand, isDistributedExecutingOnLocalNodeFirst
forEach, spliterator
public static final String KEYWORD_LIVE_SELECT
public Object execute(Map<Object,Object> iArgs)
OCommandExecutor
execute
in interface OCommandExecutor
execute
in class OCommandExecutorSQLSelect
iArgs
- Optional variable arguments to pass to the command.OCommandExecutor.parse(OCommandRequest)
public void onLiveResult(ORecordOperation iOp)
onLiveResult
in interface OLiveQueryListener
protected void execInSeparateDatabase(OCallable iCallback)
public void onLiveResultEnd()
onLiveResultEnd
in interface OLiveQueryListener
public OCommandExecutorSQLSelect parse(OCommandRequest iRequest)
OCommandExecutorSQLSelect
parse
in interface OCommandExecutor
parse
in class OCommandExecutorSQLSelect
iRequest
- Command request implementation.#execute(Map
public OCommandDistributedReplicateRequest.QUORUM_TYPE getQuorumType()
OCommandDistributedReplicateRequest
getQuorumType
in interface OCommandDistributedReplicateRequest
getQuorumType
in class OCommandExecutorSQLSelect
Copyright © 2009–2020 OrientDB. All rights reserved.