Package de.otto.flummi.response
Class SearchResponse
- java.lang.Object
-
- de.otto.flummi.response.SearchResponse
-
public class SearchResponse extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchResponse.Builder
-
Constructor Summary
Constructors Constructor Description SearchResponse(long tookInMillis, String scrollId, SearchHits hits, Map<String,AggregationResult> aggregations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchResponse.Builderbuilder()static SearchResponseemptyResponse()Map<String,AggregationResult>getAggregations()SearchHitsgetHits()StringgetScrollId()longgetTookInMillis()
-
-
-
Constructor Detail
-
SearchResponse
public SearchResponse(long tookInMillis, String scrollId, SearchHits hits, Map<String,AggregationResult> aggregations)
-
-
Method Detail
-
getHits
public SearchHits getHits()
-
getAggregations
public Map<String,AggregationResult> getAggregations()
-
getTookInMillis
public long getTookInMillis()
-
getScrollId
public String getScrollId()
-
builder
public static SearchResponse.Builder builder()
-
emptyResponse
public static SearchResponse emptyResponse()
-
-