Class OSQLNonBlockingQuery<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.OSQLNonBlockingQuery<T>
- All Implemented Interfaces:
OCommandRequest,OCommandRequestAsynch,OCommandRequestInternal,OCommandRequestText,OQuery<T>
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:
-
Nested Class Summary
Nested Classes -
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.OSQLNonBlockingQuery(String iText, int iLimit, OCommandResultListener iResultListener) OSQLNonBlockingQuery(String iText, int iLimit, String iFetchPlan, Map<Object, Object> iArgs, OCommandResultListener iResultListener) OSQLNonBlockingQuery(String iText, OCommandResultListener iResultListener) -
Method Summary
Modifier and TypeMethodDescription<RET> RET<RET> RETbooleanbooleanReturns true if the command doesn't change the database, otherwise false.Methods inherited from class com.orientechnologies.orient.core.sql.query.OSQLQuery
deserializeQueryParameters, fromStream, getText, queryFromStream, queryToStream, run, runFirst, serializeQueryParameters, setText, toStream, toStringMethods inherited from class com.orientechnologies.orient.core.query.OQueryAbstract
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
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
-
OSQLNonBlockingQuery
public OSQLNonBlockingQuery()Empty constructor for unmarshalling. -
OSQLNonBlockingQuery
-
OSQLNonBlockingQuery
-
OSQLNonBlockingQuery
-
-
Method Details
-
execute2
-
executeFirst
-
execute
- Specified by:
executein interfaceOCommandRequest- Overrides:
executein classOQueryAbstract<T>
-
isIdempotent
public boolean isIdempotent()Description copied from interface:OCommandRequestReturns true if the command doesn't change the database, otherwise false.- Specified by:
isIdempotentin interfaceOCommandRequest- Overrides:
isIdempotentin classOQueryAbstract<T>
-
isAsynchronous
public boolean isAsynchronous()- Specified by:
isAsynchronousin interfaceOCommandRequestAsynch
-