Package org.apache.camel.component.es
Class ElasticsearchScrollRequestIterator<TDocument>
- java.lang.Object
-
- org.apache.camel.component.es.ElasticsearchScrollRequestIterator<TDocument>
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getRequestCount()
boolean
hasNext()
boolean
isClosed()
co.elastic.clients.elasticsearch.core.search.Hit<TDocument>
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Constructor Detail
-
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 Detail
-
next
public co.elastic.clients.elasticsearch.core.search.Hit<TDocument> next()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getRequestCount
public int getRequestCount()
-
isClosed
public boolean isClosed()
-
-