Class BackpressureRestHighLevelClient
java.lang.Object
io.trino.plugin.elasticsearch.client.BackpressureRestHighLevelClient
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionBackpressureRestHighLevelClient(org.elasticsearch.client.RestClientBuilder restClientBuilder, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats) -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.action.search.ClearScrollResponseclearScroll(org.elasticsearch.action.search.ClearScrollRequest clearScrollRequest, org.apache.http.Header... headers) voidclose()org.elasticsearch.action.search.SearchResponsesearch(org.elasticsearch.action.search.SearchRequest searchRequest, org.apache.http.Header... headers) org.elasticsearch.action.search.SearchResponsesearchScroll(org.elasticsearch.action.search.SearchScrollRequest searchScrollRequest, org.apache.http.Header... headers)
-
Constructor Details
-
BackpressureRestHighLevelClient
public BackpressureRestHighLevelClient(org.elasticsearch.client.RestClientBuilder restClientBuilder, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats)
-
-
Method Details
-
getLowLevelClient
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
search
public org.elasticsearch.action.search.SearchResponse search(org.elasticsearch.action.search.SearchRequest searchRequest, org.apache.http.Header... headers) throws IOException - Throws:
IOException
-
searchScroll
public org.elasticsearch.action.search.SearchResponse searchScroll(org.elasticsearch.action.search.SearchScrollRequest searchScrollRequest, org.apache.http.Header... headers) throws IOException - Throws:
IOException
-
clearScroll
public org.elasticsearch.action.search.ClearScrollResponse clearScroll(org.elasticsearch.action.search.ClearScrollRequest clearScrollRequest, org.apache.http.Header... headers) throws IOException - Throws:
IOException
-