public abstract class AbstractElasticSearchDataSet extends AbstractDataSet
DataSet
implementation for ElasticSearchModifier 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, toString
classEquals, equals, hashCode
forEach, spliterator
protected 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()
AbstractDataSet
close
in interface Closeable
close
in interface AutoCloseable
close
in interface DataSet
close
in class AbstractDataSet
protected abstract void closeNow()
protected void finalize() throws Throwable
public boolean next()
DataSet
protected abstract org.elasticsearch.action.search.SearchResponse scrollSearchResponse(String scrollId) throws IOException
IOException
public Row getRow()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.