Class QueryResponse
java.lang.Object
org.infinispan.query.remote.client.impl.QueryResponse
- All Implemented Interfaces:
BaseQueryResponse
@SerializeWith(QueryResponseExternalizer.class)
public final class QueryResponse
extends Object
implements BaseQueryResponse
- Since:
- 6.0
- Author:
- anistor@redhat.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<?>extractResults(org.infinispan.protostream.SerializationContext serializationContext) intintList<org.infinispan.protostream.WrappedMessage>longvoidsetNumResults(int numResults) voidsetProjectionSize(int projectionSize) voidsetResults(List<org.infinispan.protostream.WrappedMessage> results) voidsetTotalResults(long totalResults)
-
Constructor Details
-
QueryResponse
public QueryResponse()
-
-
Method Details
-
getNumResults
public int getNumResults() -
setNumResults
public void setNumResults(int numResults) -
getProjectionSize
public int getProjectionSize() -
setProjectionSize
public void setProjectionSize(int projectionSize) -
getResults
-
setResults
-
extractResults
public List<?> extractResults(org.infinispan.protostream.SerializationContext serializationContext) throws IOException - Specified by:
extractResultsin interfaceBaseQueryResponse- Throws:
IOException
-
getTotalResults
public long getTotalResults()- Specified by:
getTotalResultsin interfaceBaseQueryResponse
-
setTotalResults
public void setTotalResults(long totalResults)
-