Qore DataProvider Module Reference  1.1
DefaultRecordIterator.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace DataProvider {
28 
31 
32 public:
33 protected:
34  AbstractIterator i;
35  *hash<auto> where_cond;
36  *hash<auto> search_options;
37  *hash<string, AbstractDataField> record_type;
38  int count = 0;
39 
40 public:
41 
43 
47  constructor(AbstractIterator i, *hash<auto> where_cond, *hash<auto> search_options, *hash<string, AbstractDataField> record_type);
48 
49 
51 
58  bool next();
59 
60 
62 
64  bool valid();
65 
66 
68 
70  hash<auto> getValue();
71 
72 
74 
80  auto memberGate(string key);
81 
82 
84 
86  *hash<string, AbstractDataField> getRecordType();
87 
88 };
89 };
Defines the abstract class for data provider iterators; the destructor releases the iterator.
Definition: AbstractDataProviderRecordIterator.qc.dox.h:33
Default record iterator class for data providers that do not support custom read / search APIs.
Definition: DefaultRecordIterator.qc.dox.h:30
constructor(AbstractIterator i, *hash< auto > where_cond, *hash< auto > search_options, *hash< string, AbstractDataField > record_type)
Returns an iterator for zero or more records matching the search options.
bool valid()
returns True if the iterator is currently pointing at a valid element, False if not
auto memberGate(string key)
Returns the value of the given field in the current record, if the iterator is valid.
bool next()
Moves the current position to the next element; returns False if there are no more elements.
*hash< string, AbstractDataField > getRecordType()
Returns the record description, if available.
hash< auto > getValue()
returns a single record if the iterator is valid
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:32