Class OCommandExecutorSQLLiveSelect
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.OCommandExecutorSQLResultsetAbstract
com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect
com.orientechnologies.orient.core.sql.OCommandExecutorSQLLiveSelect
- All Implemented Interfaces:
OCommandDistributedReplicateRequest,OCommandExecutor,OLiveQueryListener,OIterableRecordSource,OTemporaryRidGenerator,Iterable<OIdentifiable>
public class OCommandExecutorSQLLiveSelect
extends OCommandExecutorSQLSelect
implements OLiveQueryListener
- Author:
- Luigi Dell'Aquila (l.dellaquila-(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.OCommandExecutorSQLSelect
KEYWORD_ASC, KEYWORD_BY, KEYWORD_DESC, KEYWORD_FETCHPLAN, KEYWORD_FOREACH, KEYWORD_GROUP, KEYWORD_NOCACHE, KEYWORD_ORDER, KEYWORD_SELECT, KEYWORD_UNWINDFields inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract
compiledFilter, KEYWORD_FROM_2FIND, KEYWORD_LET_2FIND, lazyIteration, let, parsedTarget, request, resultCount, serialTempRID, skip, target, tempResultFields 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 TypeMethodDescriptionprotected voidexecInSeparateDatabase(OCallable iCallback) Execute the requested command parsed previously.Returns the quorum type for the command: NONE: no quorum READ: configured Read quorum WRITE: configured Write quorum ALL: all nodesvoidvoidparse(OCommandRequest iRequest) Compile the filter conditions only the first time.Methods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLSelect
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, setProjectionsMethods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLResultsetAbstract
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, setTargetMethods inherited from class com.orientechnologies.orient.core.sql.OCommandExecutorSQLAbstract
bindDefaultContextVariables, checkClusterAccess, decodeClassName, getInvolvedClustersOfClasses, getInvolvedClustersOfClusters, getInvolvedClustersOfIndex, parseLock, parseTimeout, preParse, throwParsingException, throwParsingException, throwSyntaxErrorExceptionMethods inherited from class com.orientechnologies.orient.core.command.OCommandExecutorAbstract
checkInterruption, checkInterruption, getContext, getDatabase, getDistributedTimeout, getLimit, getParameters, getProgressListener, getSecurityOperationType, getUndoCommand, init, involveSchema, isDistributedExecutingOnLocalNodeFirst, isLocalExecution, setContext, setLimit, 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 java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.orientechnologies.orient.core.command.OCommandDistributedReplicateRequest
getDistributedTimeout, getUndoCommand, isDistributedExecutingOnLocalNodeFirst
-
Field Details
-
KEYWORD_LIVE_SELECT
- See Also:
-
-
Constructor Details
-
OCommandExecutorSQLLiveSelect
public OCommandExecutorSQLLiveSelect()
-
-
Method Details
-
execute
Description copied from interface:OCommandExecutorExecute the requested command parsed previously.- Specified by:
executein interfaceOCommandExecutor- Overrides:
executein classOCommandExecutorSQLSelect- Parameters:
iArgs- Optional variable arguments to pass to the command.- Returns:
- See Also:
-
onLiveResult
- Specified by:
onLiveResultin interfaceOLiveQueryListener
-
execInSeparateDatabase
-
onLiveResultEnd
public void onLiveResultEnd()- Specified by:
onLiveResultEndin interfaceOLiveQueryListener
-
parse
Description copied from class:OCommandExecutorSQLSelectCompile the filter conditions only the first time.- Specified by:
parsein interfaceOCommandExecutor- Overrides:
parsein classOCommandExecutorSQLSelect- Parameters:
iRequest- Command request implementation.- Returns:
- See Also:
-
#execute(Map<Object, Object>...)
-
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- Overrides:
getQuorumTypein classOCommandExecutorSQLSelect
-