$darkmode
Qore ElasticSearchDataProvider Module Reference 1.0
ElasticSearchRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace ElasticSearchDataProvider {
29 
30 public:
31 
32 private:
35 
37  string name;
38 
40  hash<auto> index;
41 
43  hash<string, DataProvider::AbstractDataField> record_type;
44 
47 
49  const MatchOptions = ("operator",);
50 
51 public:
52 
54 
61  constructor(RestClient::RestClient rest, string name, hash<auto> index, hash<string, DataProvider::AbstractDataField> record_type, *hash<auto> where_cond, *hash<auto> search_options);
62 
63 
65 
68  bool valid();
69 
70 
72 
78  bool next();
79 
80 
82 
84  hash<auto> getValue();
85 
86 
88 
94  auto memberGate(string key);
95 
96 
98  *hash<auto> makeQuery(*hash<auto> where_cond, *hash<auto> search_options);
99 
100 
102 
104  *hash<string, DataProvider::AbstractDataField> getRecordType();
105 
106 };
107 };
Defines the record iterator class for Table-based iterators.
Definition: ElasticSearchRecordIterator.qc.dox.h:28
hash< auto > index
Index hash.
Definition: ElasticSearchRecordIterator.qc.dox.h:40
*hash< auto > makeQuery(*hash< auto > where_cond, *hash< auto > search_options)
Returns the query body.
hash< auto > getValue()
Returns a single record if the iterator is valid.
bool valid()
Returns True if the iterator is valid.
*hash< string, DataProvider::AbstractDataField > getRecordType()
Returns the record description, if available.
auto memberGate(string key)
Returns the value of the given field in the current row, if the iterator is valid.
string name
current index name
Definition: ElasticSearchRecordIterator.qc.dox.h:37
RestClient::RestClient rest
The REST client object for API calls.
Definition: ElasticSearchRecordIterator.qc.dox.h:34
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
hash< string, DataProvider::AbstractDataField > record_type
The record type for the object.
Definition: ElasticSearchRecordIterator.qc.dox.h:43
const MatchOptions
Query match options.
Definition: ElasticSearchRecordIterator.qc.dox.h:49
bool next()
Increments the row pointer when retrieving rows from a select statement.
Qore::ListHashIterator i
record iterator
Definition: ElasticSearchRecordIterator.qc.dox.h:46
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26