public abstract class AbstractElasticSearchDataSet extends AbstractDataSet
DataSet implementation for ElasticSearch| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
_closed |
protected org.elasticsearch.search.SearchHit |
_currentHit |
protected int |
_hitIndex |
protected org.elasticsearch.action.search.SearchResponse |
_searchResponse |
| Constructor and Description |
|---|
AbstractElasticSearchDataSet(org.elasticsearch.action.search.SearchResponse searchResponse,
List<SelectItem> selectItems) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the DataSet and any resources it may be holding.
|
protected abstract void |
closeNow() |
protected void |
finalize() |
Row |
getRow() |
boolean |
next()
Moves forward to the next row.
|
protected abstract org.elasticsearch.action.search.SearchResponse |
scrollSearchResponse(String scrollId) |
decorateIdentity, getHeader, getSelectItems, indexOf, iterator, toObjectArrays, toRows, toStringclassEquals, equals, hashCodeforEach, spliteratorprotected final AtomicBoolean _closed
protected org.elasticsearch.action.search.SearchResponse _searchResponse
protected org.elasticsearch.search.SearchHit _currentHit
protected int _hitIndex
public AbstractElasticSearchDataSet(org.elasticsearch.action.search.SearchResponse searchResponse,
List<SelectItem> selectItems)
public void close()
AbstractDataSetclose in interface Closeableclose in interface AutoCloseableclose in interface DataSetclose in class AbstractDataSetprotected abstract void closeNow()
protected void finalize()
throws Throwable
public boolean next()
DataSetprotected abstract org.elasticsearch.action.search.SearchResponse scrollSearchResponse(String scrollId) throws IOException
IOExceptionpublic Row getRow()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.