$darkmode
Qore ElasticSearchDataProvider Module Reference 1.0
ElasticSearchDocumentDataProvider.qc.dox.h
1 // -*- mode: c++; indent-tabs-mode: nil -*-
3 
26 namespace ElasticSearchDataProvider {
28 
31 
32 public:
34  const ProviderInfo = <DataProviderInfo>{
35  "name": "document",
36  "desc": "ElasticSearch document data provider; provides access to operations on ElasticSearch documents",
37  "type": "ElasticSearchDocumentDataProvider",
38  "constructor_options": ElasticSearchDataProvider::ConstructorOptions,
39  "supports_children": True,
40  "children_can_support_apis": True,
41  };
42 
44  const ProviderSummaryInfo = cast<hash<DataProviderSummaryInfo>>(ProviderInfo{
45  AbstractDataProvider::DataProviderSummaryInfoKeys
46  });
47 
48 protected:
49  const ChildMap = {
50  "create": Class::forName("ElasticSearchDataProvider::ElasticSearchDocumentCreateDataProvider"),
51  "read": Class::forName("ElasticSearchDataProvider::ElasticSearchDocumentReadDataProvider"),
52  "update": Class::forName("ElasticSearchDataProvider::ElasticSearchDocumentUpdateDataProvider"),
53  "delete": Class::forName("ElasticSearchDataProvider::ElasticSearchDocumentDeleteDataProvider"),
54  };
55 
56 public:
57 
59  constructor(*hash<auto> options);
60 
61 
64 
65 
67  string getName();
68 
69 
71  *string getDesc();
72 
73 
75  *list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
76 
77 
79 
81 protected:
82  *list<string> getChildProviderNamesImpl();
83 public:
84 
85 
87 
91 protected:
93 public:
94 
95 
97  hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
98 
99 };
100 };
The AWS REST client base data provider class.
Definition: ElasticSearchDataProviderBase.qc.dox.h:28
const ConstructorOptions
Constructor options.
Definition: ElasticSearchDataProvider.qc.dox.h:61
The ElasticSearch document API root data provider.
Definition: ElasticSearchDocumentDataProvider.qc.dox.h:30
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
const ProviderInfo
Provider info.
Definition: ElasticSearchDocumentDataProvider.qc.dox.h:34
string getName()
Returns the data provider name.
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
constructor(RestClient::RestClient rest)
Creates the object from a REST connection.
*string getDesc()
Returns the data provider description.
constructor(*hash< auto > options)
Creates the object from constructor options.
const ProviderSummaryInfo
Provider summary info.
Definition: ElasticSearchDocumentDataProvider.qc.dox.h:44
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
const True
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26