public class QueryResponseImpl extends Object implements QueryResponse
QueryResponse implementation.| Constructor and Description |
|---|
QueryResponseImpl(Set<Resource> resources)
Constructor.
|
QueryResponseImpl(Set<Resource> resources,
boolean sortedResponse,
boolean pagedResponse,
int totalResourceCount)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Resource> |
getResources()
Get the set of resources returned in the response.
|
int |
getTotalResourceCount()
Get the the total number of resources for the query result.
|
boolean |
isPagedResponse()
Determine whether or not the response is paginated.
|
boolean |
isSortedResponse()
Determine whether or not the response is sorted.
|
public QueryResponseImpl(Set<Resource> resources)
resources - the set of resources returned by the query.public QueryResponseImpl(Set<Resource> resources, boolean sortedResponse, boolean pagedResponse, int totalResourceCount)
resources - the set of resources returned by the query.sortedResponse - indicates whether or not the response is sortedpagedResponse - indicates whether or not the response is pagedtotalResourceCount - the total number of resources returned by the querypublic Set<Resource> getResources()
QueryResponsegetResources in interface QueryResponsepublic boolean isSortedResponse()
QueryResponseisSortedResponse in interface QueryResponsetrue if the response is sortedpublic boolean isPagedResponse()
QueryResponseisPagedResponse in interface QueryResponsetrue if the response is paginatedpublic int getTotalResourceCount()
QueryResponsegetTotalResourceCount in interface QueryResponseCopyright © 2022 Apache Software Foundation. All rights reserved.