Class QueryResponse
java.lang.Object
org.infinispan.query.remote.client.impl.QueryResponse
- All Implemented Interfaces:
BaseQueryResponse
@ProtoTypeId(4401)
@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> inthitCount()voidhitCount(int hitCount) booleanvoidhitCountExact(boolean hitCountExact) voidsetNumResults(int numResults) voidsetProjectionSize(int projectionSize) voidsetResults(List<org.infinispan.protostream.WrappedMessage> results)
-
Constructor Details
-
QueryResponse
public QueryResponse()
-
-
Method Details
-
getNumResults
@ProtoField(number=1, defaultValue="0") public int getNumResults() -
setNumResults
public void setNumResults(int numResults) -
getProjectionSize
@ProtoField(number=2, defaultValue="0") public int getProjectionSize() -
setProjectionSize
public void setProjectionSize(int projectionSize) -
getResults
@ProtoField(number=3, collectionImplementation=java.util.ArrayList.class) public List<org.infinispan.protostream.WrappedMessage> getResults() -
setResults
-
extractResults
public List<?> extractResults(org.infinispan.protostream.SerializationContext serializationContext) throws IOException - Specified by:
extractResultsin interfaceBaseQueryResponse- Throws:
IOException
-
hitCount
@ProtoField(number=4, defaultValue="-1") public int hitCount()- Specified by:
hitCountin interfaceBaseQueryResponse
-
hitCount
public void hitCount(int hitCount) -
hitCountExact
@ProtoField(number=5, defaultValue="false") public boolean hitCountExact()- Specified by:
hitCountExactin interfaceBaseQueryResponse
-
hitCountExact
public void hitCountExact(boolean hitCountExact)
-