Class ElasticsearchClient

java.lang.Object
io.trino.plugin.elasticsearch.client.ElasticsearchClient

public class ElasticsearchClient extends Object
  • Constructor Details

  • Method Details

    • initialize

      @PostConstruct public void initialize()
    • close

      @PreDestroy public void close() throws IOException
      Throws:
      IOException
    • getNodes

      public Set<ElasticsearchNode> getNodes()
    • getSearchShards

      public List<Shard> getSearchShards(String index)
    • indexExists

      public boolean indexExists(String index)
    • getIndexes

      public List<String> getIndexes()
    • getAliases

      public Map<String,List<String>> getAliases()
    • getIndexMetadata

      public IndexMetadata getIndexMetadata(String index)
    • executeQuery

      public String executeQuery(String index, String query)
    • beginSearch

      public org.elasticsearch.action.search.SearchResponse beginSearch(String index, int shard, org.elasticsearch.index.query.QueryBuilder query, Optional<List<String>> fields, List<String> documentFields, Optional<String> sort, OptionalLong limit)
    • nextPage

      public org.elasticsearch.action.search.SearchResponse nextPage(String scrollId)
    • count

      public long count(String index, int shard, org.elasticsearch.index.query.QueryBuilder query)
    • clearScroll

      public void clearScroll(String scrollId)
    • getSearchStats

      public io.airlift.stats.TimeStat getSearchStats()
    • getNextPageStats

      public io.airlift.stats.TimeStat getNextPageStats()
    • getCountStats

      public io.airlift.stats.TimeStat getCountStats()
    • getBackpressureStats

      public io.airlift.stats.TimeStat getBackpressureStats()