Loading...
Searching...
No Matches
ElasticSearchRecordIterator.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace ElasticSearchDataProvider {
class ElasticSearchRecordIterator : public DataProvider::AbstractDataProviderRecordIterator {
public:
private:
RestClient::RestClient rest;
string name;
hash<auto> index;
hash<string, DataProvider::AbstractDataField> record_type;
Qore::ListHashIterator i;
const MatchOptions = ("operator",);
public:
constructor(RestClient::RestClient rest, string name, hash<auto> index, hash<string, DataProvider::AbstractDataField> record_type, *hash<auto> where_cond, *hash<auto> search_options);
bool valid();
bool next();
hash<auto> getValue();
auto memberGate(string key);
*hash<auto> makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
*hash<string, DataProvider::AbstractDataField> getRecordType();
};
};
ElasticSearchDataProvider::ElasticSearchRecordIterator
Defines the record iterator class for Table-based iterators.
Definition ElasticSearchRecordIterator.qc.dox.h:28
ElasticSearchDataProvider::ElasticSearchRecordIterator::index
hash< auto > index
Index hash.
Definition ElasticSearchRecordIterator.qc.dox.h:40
ElasticSearchDataProvider::ElasticSearchRecordIterator::valid
bool valid()
Returns True if the iterator is valid.
ElasticSearchDataProvider::ElasticSearchRecordIterator::makeQuery
*hash< auto > makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the query body.
ElasticSearchDataProvider::ElasticSearchRecordIterator::memberGate
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
ElasticSearchDataProvider::ElasticSearchRecordIterator::name
string name
current index name
Definition ElasticSearchRecordIterator.qc.dox.h:37
ElasticSearchDataProvider::ElasticSearchRecordIterator::getValue
hash< auto > getValue()
Returns a single record if the iterator is valid.
ElasticSearchDataProvider::ElasticSearchRecordIterator::rest
RestClient::RestClient rest
The REST client object for API calls.
Definition ElasticSearchRecordIterator.qc.dox.h:34
ElasticSearchDataProvider::ElasticSearchRecordIterator::constructor
constructor(RestClient::RestClient rest, string name, hash< auto > index, hash< string, DataProvider::AbstractDataField > record_type, *hash< auto > where_cond, *hash< auto > search_options)
creates the iterator
ElasticSearchDataProvider::ElasticSearchRecordIterator::record_type
hash< string, DataProvider::AbstractDataField > record_type
The record type for the object.
Definition ElasticSearchRecordIterator.qc.dox.h:43
ElasticSearchDataProvider::ElasticSearchRecordIterator::MatchOptions
const MatchOptions
Query match options.
Definition ElasticSearchRecordIterator.qc.dox.h:49
ElasticSearchDataProvider::ElasticSearchRecordIterator::next
bool next()
Increments the row pointer when retrieving rows from a select statement.
ElasticSearchDataProvider::ElasticSearchRecordIterator::getRecordType
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
ElasticSearchDataProvider::ElasticSearchRecordIterator::i
Qore::ListHashIterator i
record iterator
Definition ElasticSearchRecordIterator.qc.dox.h:46
ElasticSearchDataProvider
Qore ElasticSearchDataProvider module definition.
Definition ElasticSearchAcknowledgedDataType.qc.dox.h:26