public class ElasticsearchQuery extends Object implements Iterable<org.elasticsearch.search.SearchHit>, Iterator<org.elasticsearch.search.SearchHit>, Serializable
| Constructor and Description | 
|---|
| ElasticsearchQuery()ElasticsearchQuery constructor - resolves ElasticsearchReaderConfiguration from JVM 'elasticsearch'. | 
| ElasticsearchQuery(ElasticsearchReaderConfiguration config)ElasticsearchQuery constructor - uses provided ElasticsearchReaderConfiguration. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | calcNext()shift to next page of scroll. | 
| void | cleanUp() | 
| void | execute(Object obj)execute ElasticsearchQuery. | 
| long | getHitCount() | 
| long | getReadCount() | 
| double | getReadPercent() | 
| long | getRemainingCount() | 
| boolean | hasNext() | 
| protected boolean | hasRecords() | 
| protected boolean | isCompleted() | 
| Iterator<org.elasticsearch.search.SearchHit> | iterator() | 
| org.elasticsearch.search.SearchHit | next() | 
| void | remove() | 
| void | setBatchSize(int batchSize) | 
| void | setQueryBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder) | 
| void | setScrollTimeout(String scrollTimeout) | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingpublic ElasticsearchQuery()
public ElasticsearchQuery(ElasticsearchReaderConfiguration config)
public long getHitCount()
public long getReadCount()
public double getReadPercent()
public long getRemainingCount()
public void setBatchSize(int batchSize)
public void setScrollTimeout(String scrollTimeout)
public void setQueryBuilder(org.elasticsearch.index.query.QueryBuilder queryBuilder)
public void execute(Object obj)
obj - deprecatedpublic Iterator<org.elasticsearch.search.SearchHit> iterator()
public org.elasticsearch.search.SearchHit next()
public boolean hasNext()
public void calcNext()
public void remove()
public void cleanUp()
protected boolean isCompleted()
protected boolean hasRecords()
Copyright © 2018 The Apache Software Foundation. All rights reserved.