Class RemoteQuery<T>
java.lang.Object
org.infinispan.query.dsl.impl.BaseQuery<T>
org.infinispan.client.hotrod.impl.query.RemoteQuery<T>
- Since:
- 6.0
- Author:
- anistor@redhat.com
-
Field Summary
Fields inherited from class org.infinispan.query.dsl.impl.BaseQuery
hitCountAccuracy, local, maxResults, namedParameters, projection, queryFactory, queryString, scoreRequired, startOffset, timeout -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the query (a SELECT statement).intExecutes a data modifying statement (typically a DELETE) that does not return results; instead it returns the count of affected entries.RemoteCache<?,?> getCache()intGets the total number of results matching the query, ignoring pagination (startOffset, maxResults).org.infinispan.protostream.SerializationContextGet the protobuf SerializationContext ornullif we are not using protobuf.iterator()Returns aCloseableIteratorover the results.list()Returns the results of a search as a list.voidReset internal state after pagination or query parameters are modified.toString()Methods inherited from class org.infinispan.query.dsl.impl.BaseQuery
entryIterator, getMaxResults, getParameters, getProjection, getQueryString, getStartOffset, hasProjections, hitCountAccuracy, hitCountAccuracy, isLocal, local, maxResults, scoreRequired, setParameter, setParameters, startOffset, timeout, validateNamedParametersMethods 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 org.infinispan.commons.api.query.Query
entryIterator
-
Method Details
-
resetQuery
public void resetQuery()Description copied from class:BaseQueryReset internal state after pagination or query parameters are modified. This is needed to ensure the next execution of the query uses the new values.- Specified by:
resetQueryin classBaseQuery<T>
-
list
Description copied from interface:QueryReturns the results of a search as a list.- Returns:
- a list of objects that were found in the search.
-
execute
Description copied from interface:QueryExecutes the query (a SELECT statement). Subsequent invocations cause the query to be re-executed.Executing a DELETE is also allowed. In this case, no results will be returned, but the number of affected entries will be returned as the hit count in the
QueryResult.- Returns:
QueryResultwith the results.
-
executeStatement
public int executeStatement()Description copied from interface:QueryExecutes a data modifying statement (typically a DELETE) that does not return results; instead it returns the count of affected entries. This method cannot be used to execute a SELECT.NOTE: Paging parameters (firstResult/maxResults) are NOT allowed.
- Specified by:
executeStatementin interfaceQuery<T>- Overrides:
executeStatementin classBaseQuery<T>- Returns:
- the number of affected (deleted) entries
-
iterator
Description copied from interface:QueryReturns aCloseableIteratorover the results. Close the iterator when you are done with processing the results.- Returns:
- the results of the query as an iterator.
-
getResultSize
public int getResultSize()Description copied from interface:QueryGets the total number of results matching the query, ignoring pagination (startOffset, maxResults).- Returns:
- total number of results.
-
executeAsync
-
executeStatementAsync
-
listAsync
-
getSerializationContext
public org.infinispan.protostream.SerializationContext getSerializationContext()Get the protobuf SerializationContext ornullif we are not using protobuf. -
getCache
-
toString
-