Class OSQLQuery<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>
- Type Parameters:
T- Record type to return.
- All Implemented Interfaces:
OCommandRequest,OCommandRequestInternal,OCommandRequestText,OQuery<T>
- Direct Known Subclasses:
OSQLAsynchQuery,OSQLNonBlockingQuery
SQL query implementation.
- Author:
- Luca Garulli (l.garulli--(at)--orientdb.com)
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.command.OCommandRequestAbstract
cacheableResult, context, fetchPlan, limit, parameters, progressListener, resultListener, timeoutMs, timeoutStrategy, useCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeQueryParameters(byte[] paramBuffer, ORecordSerializer serializer) fromStream(byte[] iStream, ORecordSerializer serializer) getText()protected voidqueryFromStream(OMemoryStream buffer, ORecordSerializer serializer) protected OMemoryStreamDelegates to the OQueryExecutor the query execution.Returns only the first record if any.protected byte[]serializeQueryParameters(Map<Object, Object> params) byte[]toStream()toString()Methods inherited from class com.orientechnologies.orient.core.query.OQueryAbstract
execute, getFetchPlan, isIdempotent, 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, isIdempotent, setContext, setFetchPlan, setLimit, setTimeout, setUseCacheMethods inherited from interface com.orientechnologies.orient.core.command.OCommandRequestInternal
getParameters, getProgressListener, getResultListener, isCacheableResult, isRecordResultSet, reset, setCacheableResult, setProgressListener, setRecordResultSet, setResultListener
-
Field Details
-
text
-
-
Constructor Details
-
OSQLQuery
public OSQLQuery() -
OSQLQuery
-
-
Method Details
-
run
Delegates to the OQueryExecutor the query execution. -
runFirst
Returns only the first record if any. -
getText
- Specified by:
getTextin interfaceOCommandRequestText
-
setText
- Specified by:
setTextin interfaceOCommandRequestText
-
toString
-
fromStream
public OCommandRequestText fromStream(byte[] iStream, ORecordSerializer serializer) throws OSerializationException - Specified by:
fromStreamin interfaceOCommandRequestText- Throws:
OSerializationException
-
toStream
- Specified by:
toStreamin interfaceOCommandRequestText- Throws:
OSerializationException
-
queryToStream
-
queryFromStream
-
deserializeQueryParameters
protected Map<Object,Object> deserializeQueryParameters(byte[] paramBuffer, ORecordSerializer serializer) -
serializeQueryParameters
-