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 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

      public void setResults(List<org.infinispan.protostream.WrappedMessage> results)
    • extractResults

      public List<?> extractResults(org.infinispan.protostream.SerializationContext serializationContext) throws IOException
      Specified by:
      extractResults in interface BaseQueryResponse
      Throws:
      IOException
    • hitCount

      @ProtoField(number=4, defaultValue="-1") public int hitCount()
      Specified by:
      hitCount in interface BaseQueryResponse
    • hitCount

      public void hitCount(int hitCount)
    • hitCountExact

      @ProtoField(number=5, defaultValue="false") public boolean hitCountExact()
      Specified by:
      hitCountExact in interface BaseQueryResponse
    • hitCountExact

      public void hitCountExact(boolean hitCountExact)