Class ElasticsearchScrollRequestIterator

java.lang.Object
org.apache.camel.component.elasticsearch.ElasticsearchScrollRequestIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<org.elasticsearch.search.SearchHit>

public class ElasticsearchScrollRequestIterator extends Object implements Iterator<org.elasticsearch.search.SearchHit>, Closeable
  • Constructor Details

    • ElasticsearchScrollRequestIterator

      public ElasticsearchScrollRequestIterator(org.elasticsearch.action.search.SearchRequest searchRequest, org.elasticsearch.client.RestHighLevelClient restHighLevelClient, int scrollKeepAliveMs, org.apache.camel.Exchange exchange)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.elasticsearch.search.SearchHit>
    • next

      public org.elasticsearch.search.SearchHit next()
      Specified by:
      next in interface Iterator<org.elasticsearch.search.SearchHit>
    • close

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

      public int getRequestCount()
    • isClosed

      public boolean isClosed()