Package stroom.query.api.v2
Class SearchResponse
- java.lang.Object
-
- stroom.query.api.v2.SearchResponse
-
- All Implemented Interfaces:
java.io.Serializable
public final class SearchResponse extends java.lang.Object implements java.io.SerializableObject describing the response to asearchRequestwhich may or may not contains results- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchResponse.FlatResultBuilderstatic classSearchResponse.TableResultBuilder
-
Constructor Summary
Constructors Constructor Description SearchResponse()SearchResponse(java.util.List<java.lang.String> highlights, java.util.List<Result> results, java.util.List<java.lang.String> errors, java.lang.Boolean complete)
-
Method Summary
Modifier and Type Method Description booleancomplete()booleanequals(java.lang.Object o)java.lang.BooleangetComplete()java.util.List<java.lang.String>getErrors()java.util.List<java.lang.String>getHighlights()java.util.List<Result>getResults()inthashCode()voidsetComplete(java.lang.Boolean complete)voidsetErrors(java.util.List<java.lang.String> errors)voidsetHighlights(java.util.List<java.lang.String> highlights)voidsetResults(java.util.List<Result> results)java.lang.StringtoString()
-
-
-
Constructor Detail
-
SearchResponse
public SearchResponse()
-
SearchResponse
public SearchResponse(java.util.List<java.lang.String> highlights, java.util.List<Result> results, java.util.List<java.lang.String> errors, java.lang.Boolean complete)- Parameters:
highlights- A list of strings to highlight in the UI that should correlate with the search query.results- A list ofresultobjects that each correspond to aresultRequestin thesearchRequesterrors- Any errors that have been generated during searching.complete- Complete means that the search has finished and there are no more results to come.
-
-
Method Detail
-
getHighlights
public java.util.List<java.lang.String> getHighlights()
- Returns:
- A list of strings to highlight in the UI that should correlate with the search query.
-
setHighlights
public void setHighlights(java.util.List<java.lang.String> highlights)
-
getResults
public java.util.List<Result> getResults()
- Returns:
- A list of
resultobjects, corresponding to theresultRequestsin thesearchRequest
-
setResults
public void setResults(java.util.List<Result> results)
-
getErrors
public java.util.List<java.lang.String> getErrors()
- Returns:
- A list of errors found when performing the search
-
setErrors
public void setErrors(java.util.List<java.lang.String> errors)
-
getComplete
public java.lang.Boolean getComplete()
- Returns:
- The completed status of the search. A value of false or null indicates the search has not yet found all results.
-
setComplete
public void setComplete(java.lang.Boolean complete)
-
complete
public boolean complete()
- Returns:
- The completed status of the search. A value of false indicates the search has not yet found all results
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-