public class ElasticSearchIterator<T> extends Object implements CountedIterator<T>
| Constructor and Description |
|---|
ElasticSearchIterator(org.elasticsearch.client.Client client,
Function<org.elasticsearch.search.SearchHit,T> adapt) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
findNext() |
Long |
getCount() |
Optional<Long> |
getSize() |
boolean |
hasNext() |
T |
next() |
org.elasticsearch.action.search.SearchRequestBuilder |
prepareSearch(String... indices) |
static ElasticSearchIterator<org.elasticsearch.search.SearchHit> |
searchHits(org.elasticsearch.client.Client client) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getTotalSize, of, of, of, of, peeking, peeking, spliteratorcloseQuietlyforEachRemaining, removepublic static ElasticSearchIterator<org.elasticsearch.search.SearchHit> searchHits(org.elasticsearch.client.Client client)
public org.elasticsearch.action.search.SearchRequestBuilder prepareSearch(String... indices)
protected void findNext()
public Optional<Long> getSize()
getSize in interface CountedIterator<T>public Long getCount()
getCount in interface CountedIterator<T>Copyright © 2019. All rights reserved.