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()
QueryResponse
getResources
in interface QueryResponse
public boolean isSortedResponse()
QueryResponse
isSortedResponse
in interface QueryResponse
true
if the response is sortedpublic boolean isPagedResponse()
QueryResponse
isPagedResponse
in interface QueryResponse
true
if the response is paginatedpublic int getTotalResourceCount()
QueryResponse
getTotalResourceCount
in interface QueryResponse
Copyright © 2022 Apache Software Foundation. All rights reserved.