Class OSQLAsynchQuery<T>
java.lang.Object
com.orientechnologies.orient.core.command.OCommandRequestAbstract
com.orientechnologies.orient.core.query.OQueryAbstract<T>
com.orientechnologies.orient.core.sql.query.OSQLQuery<T>
com.orientechnologies.orient.core.sql.query.OSQLAsynchQuery<T>
- Type Parameters:
T-
- All Implemented Interfaces:
OCommandRequest,OCommandRequestAsynch,OCommandRequestInternal,OCommandRequestText,OQuery<T>
- Direct Known Subclasses:
OSQLSynchQuery
SQL asynchronous query. When executed the caller does not wait for the execution, rather the
listener will be called for each item found in the query. OSQLAsynchQuery has been built on top
of this. NOTE: if you're working with remote databases don't execute any remote call inside the
callback function because the network channel is locked until the query command has finished.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
- See Also:
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
cacheableResult, context, fetchPlan, limit, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor for unmarshalling.OSQLAsynchQuery(String iText) OSQLAsynchQuery(String iText, int iLimit, OCommandResultListener iResultListener) OSQLAsynchQuery(String iText, int iLimit, String iFetchPlan, Map<Object, Object> iArgs, OCommandResultListener iResultListener) OSQLAsynchQuery(String iText, OCommandResultListener iResultListener) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanSets default non idempotent to avoid custom query deadlocks database.Delegates to the OQueryExecutor the query execution.Methods inherited from class com.orientechnologies.orient.core.sql.query.OSQLQuery
deserializeQueryParameters, fromStream, getText, queryFromStream, queryToStream, runFirst, serializeQueryParameters, setText, toStream, toStringMethods inherited from class com.orientechnologies.orient.core.query.OQueryAbstract
execute, getFetchPlan, reset, setFetchPlanMethods inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
addExcludedNode, convertToParameters, getContext, getLimit, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, removeExcludedNode, setCacheableResult, setContext, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequest
execute, getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, setContext, setFetchPlan, setLimit, setTimeout, setUseCacheMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequestAsynch
getResultListener, setResultListenerMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequestInternal
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
-
Constructor Details
-
OSQLAsynchQuery
public OSQLAsynchQuery()Empty constructor for unmarshalling. -
OSQLAsynchQuery
-
OSQLAsynchQuery
-
OSQLAsynchQuery
-
OSQLAsynchQuery
-
-
Method Details
-
run
Description copied from class:OSQLQueryDelegates to the OQueryExecutor the query execution. -
isIdempotent
public boolean isIdempotent()Sets default non idempotent to avoid custom query deadlocks database.- Specified by:
isIdempotentin interfaceOCommandRequest- Overrides:
isIdempotentin classOQueryAbstract<T>
-
isAsynchronous
public boolean isAsynchronous()- Specified by:
isAsynchronousin interfaceOCommandRequestAsynch
-