T
- public class OSQLSynchQuery<T> extends OSQLAsynchQuery<T> implements OCommandResultListener, Iterable<T>
OSQLAsynchQuery
cacheableResult, context, fetchPlan, limit, onAsyncReplicationError, onAsyncReplicationOk, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache
Constructor and Description |
---|
OSQLSynchQuery() |
OSQLSynchQuery(String iText) |
OSQLSynchQuery(String iText,
int iLimit) |
Modifier and Type | Method and Description |
---|---|
void |
end()
Called at the end of processing.
|
ORID |
getNextPageRID() |
Object |
getResult() |
boolean |
isAsynchronous() |
boolean |
isIdempotent()
Sets default non idempotent to avoid custom query deadlocks database.
|
Iterator<T> |
iterator() |
protected void |
queryFromStream(OMemoryStream buffer,
ORecordSerializer serializer) |
protected OMemoryStream |
queryToStream() |
void |
reset()
Resets the query removing the result set.
|
void |
resetPagination() |
boolean |
result(Object iRecord)
This method is called for each result.
|
List<T> |
run(Object... iArgs)
Delegates to the OQueryExecutor the query execution.
|
deserializeQueryParameters, fromStream, getText, runFirst, serializeQueryParameters, setText, toStream, toString
execute, getFetchPlan, setFetchPlan
addExcludedNode, convertToParameters, getContext, getLimit, getOnAsyncReplicationError, getOnAsyncReplicationOk, getParameters, getProgressListener, getResultListener, getTimeoutStrategy, getTimeoutTime, isCacheableResult, isRecordResultSet, isUseCache, nodesToExclude, onAsyncReplicationError, onAsyncReplicationOk, removeExcludedNode, setCacheableResult, setContext, setLimit, setParameters, setProgressListener, setRecordResultSet, setResultListener, setTimeout, setUseCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
getResultListener, setResultListener
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
execute, getContext, getFetchPlan, getLimit, getTimeoutStrategy, getTimeoutTime, setContext, setFetchPlan, setLimit, setTimeout, setUseCache
public OSQLSynchQuery()
public OSQLSynchQuery(String iText)
public OSQLSynchQuery(String iText, int iLimit)
public void reset()
OQueryAbstract
reset
in interface OCommandRequestInternal
reset
in interface OQuery<T>
reset
in class OQueryAbstract<T>
public boolean result(Object iRecord)
OCommandResultListener
result
in interface OCommandResultListener
iRecord
- Current recordpublic void end()
OCommandResultListener
end
in interface OCommandResultListener
public List<T> run(Object... iArgs)
OSQLQuery
public boolean isIdempotent()
OSQLAsynchQuery
isIdempotent
in interface OCommandRequest
isIdempotent
in class OSQLAsynchQuery<T>
public Object getResult()
getResult
in interface OCommandResultListener
public ORID getNextPageRID()
public void resetPagination()
public boolean isAsynchronous()
isAsynchronous
in interface OCommandRequestAsynch
isAsynchronous
in class OSQLAsynchQuery<T>
protected OMemoryStream queryToStream()
queryToStream
in class OSQLQuery<T>
protected void queryFromStream(OMemoryStream buffer, ORecordSerializer serializer)
queryFromStream
in class OSQLQuery<T>
Copyright © 2009–2020 OrientDB. All rights reserved.