public class BatchSearchResponse extends java.lang.Object implements SearchResponse
Modifier and Type | Field and Description |
---|---|
protected ResponseError |
error |
protected BatchableSearchResponse[] |
responses |
protected int |
successfulRequests |
protected int |
totalRequests |
Constructor and Description |
---|
BatchSearchResponse() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
The error message, as returned by the server.
|
java.util.List<FuzzySearchResponse> |
getFuzzySearchResponses()
Get a list of fuzzy search results of a Batch search query.
|
java.util.List<GeometrySearchResponse> |
getGeometrySearchResponses()
Get a list of geometry search results of a Batch search query.
|
java.util.List<ReverseGeocoderSearchResponse> |
getReverseGeocoderSearchResponses()
Get a list of reverse geocoding search results of a Batch search query.
|
ImmutableList<BatchableSearchResponse> |
getSearchResponses()
Get a list of results of a Batch Search query.
|
boolean |
hasError()
True if an error occurred, false otherwise.
|
protected ResponseError error
protected int totalRequests
protected int successfulRequests
protected BatchableSearchResponse[] responses
public boolean hasError()
SearchResponse
hasError
in interface SearchResponse
true
if an error occurred, false
otherwisepublic java.lang.String getErrorMessage()
SearchResponse
getErrorMessage
in interface SearchResponse
public ImmutableList<BatchableSearchResponse> getSearchResponses()
BatchableSearchResponseVisitor
to obtain the specific
response type.public java.util.List<FuzzySearchResponse> getFuzzySearchResponses()
public java.util.List<GeometrySearchResponse> getGeometrySearchResponses()
public java.util.List<ReverseGeocoderSearchResponse> getReverseGeocoderSearchResponses()