Class BackpressureRestHighLevelClient

java.lang.Object
io.trino.plugin.elasticsearch.client.BackpressureRestHighLevelClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class BackpressureRestHighLevelClient extends Object implements Closeable
  • Constructor Summary

    Constructors
    Constructor
    Description
    BackpressureRestHighLevelClient(org.elasticsearch.client.RestClientBuilder restClientBuilder, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.elasticsearch.action.search.ClearScrollResponse
    clearScroll(org.elasticsearch.action.search.ClearScrollRequest clearScrollRequest, org.apache.http.Header... headers)
     
    void
     
     
    org.elasticsearch.action.search.SearchResponse
    search(org.elasticsearch.action.search.SearchRequest searchRequest, org.apache.http.Header... headers)
     
    org.elasticsearch.action.search.SearchResponse
    searchScroll(org.elasticsearch.action.search.SearchScrollRequest searchScrollRequest, org.apache.http.Header... headers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BackpressureRestHighLevelClient

      public BackpressureRestHighLevelClient(org.elasticsearch.client.RestClientBuilder restClientBuilder, ElasticsearchConfig config, io.airlift.stats.TimeStat backpressureStats)
  • Method Details

    • getLowLevelClient

      public BackpressureRestClient getLowLevelClient()
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      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