Class ElasticsearchScrollRequestIterator
java.lang.Object
org.apache.camel.component.elasticsearch.ElasticsearchScrollRequestIterator
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<org.elasticsearch.search.SearchHit>
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchScrollRequestIterator(org.elasticsearch.action.search.SearchRequest searchRequest, org.elasticsearch.client.RestHighLevelClient restHighLevelClient, int scrollKeepAliveMs, org.apache.camel.Exchange exchange) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
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() -
next
public org.elasticsearch.search.SearchHit next() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getRequestCount
public int getRequestCount() -
isClosed
public boolean isClosed()
-