Class ElasticsearchScrollRequestIterator<TDocument>

java.lang.Object
org.apache.camel.component.es.ElasticsearchScrollRequestIterator<TDocument>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<co.elastic.clients.elasticsearch.core.search.Hit<TDocument>>

public class ElasticsearchScrollRequestIterator<TDocument> extends Object implements Iterator<co.elastic.clients.elasticsearch.core.search.Hit<TDocument>>, Closeable
  • Constructor Details

    • ElasticsearchScrollRequestIterator

      public ElasticsearchScrollRequestIterator(co.elastic.clients.elasticsearch.core.SearchRequest.Builder searchRequestBuilder, co.elastic.clients.elasticsearch.ElasticsearchClient esClient, int scrollKeepAliveMs, org.apache.camel.Exchange exchange, Class<TDocument> documentClass)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<TDocument>
    • next

      public co.elastic.clients.elasticsearch.core.search.Hit<TDocument> next()
      Specified by:
      next in interface Iterator<TDocument>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getRequestCount

      public int getRequestCount()
    • isClosed

      public boolean isClosed()