Class ElasticsearchSearchResult
- java.lang.Object
-
- org.apache.calcite.adapter.elasticsearch.ElasticsearchSearchResult
-
public class ElasticsearchSearchResult extends java.lang.Object
Internal object used to parse elastic search result. Similar toSearchHit
. Since we're using row-level rest client the response has to be processed manually.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ElasticsearchSearchResult.SearchHit
Concrete result record which matched the query.static class
ElasticsearchSearchResult.SearchHits
Similar toSearchHits
in ES.
-
Field Summary
Fields Modifier and Type Field Description private ElasticsearchSearchResult.SearchHits
hits
private long
took
-
Constructor Summary
Constructors Constructor Description ElasticsearchSearchResult(ElasticsearchSearchResult.SearchHits hits, long took)
Constructor for this instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticsearchSearchResult.SearchHits
searchHits()
java.time.Duration
took()
-
-
-
Field Detail
-
hits
private final ElasticsearchSearchResult.SearchHits hits
-
took
private final long took
-
-
Constructor Detail
-
ElasticsearchSearchResult
ElasticsearchSearchResult(ElasticsearchSearchResult.SearchHits hits, long took)
Constructor for this instance.- Parameters:
hits
- list of matched documentstook
- time taken (in took) for this query to execute
-
-
Method Detail
-
searchHits
public ElasticsearchSearchResult.SearchHits searchHits()
-
took
public java.time.Duration took()
-
-