Loading...
Searching...
No Matches
ElasticSearchDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace ElasticSearchDataProvider {
class ElasticSearchDataProvider : public ElasticSearchDataProviderBase {
public:
string uri_path = "/";
string display_name;
const ProviderInfo = <DataProviderInfo>{
"type": "ElasticSearchDataProvider",
"supports_read": False,
"supports_create": False,
"supports_update": False,
"supports_upsert": False,
"supports_delete": False,
"supports_native_search": False,
"supports_bulk_create": False,
"supports_bulk_upsert": False,
"supports_children": True,
"constructor_options": ConstructorOptions,
"search_options": NOTHING,
"create_options": NOTHING,
"upsert_options": NOTHING,
"transaction_management": False,
"supports_schema": False,
"children_can_support_apis": True,
"children_can_support_records": True,
"children_can_support_observers": False,
};
const ConstructorOptions = {
"restclient": <DataProviderOptionInfo>{
"type": AbstractDataProviderType::get(new Type("RestClient")),
"desc": "the RestClient object",
},
"url": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."string",
"desc": "the URL to the REST server; overrides any URL in any RestClient object passed as an option",
},
"restclient_options": <DataProviderOptionInfo>{
"type": AbstractDataProviderTypeMap."*hash",
"desc": "options to the RestClient constructor; only used if a RestClient object is created for a "
"call",
},
};
protected:
const ChildMap = {
"document": Class::forName("ElasticSearchDataProvider::ElasticSearchDocumentDataProvider"),
"index": Class::forName("ElasticSearchDataProvider::ElasticSearchIndexDataProvider"),
"pipeline": Class::forName("ElasticSearchDataProvider::ElasticSearchPipelineDataProvider"),
"indexes": Class::forName("ElasticSearchDataProvider::ElasticSearchIndexesDataProvider"),
};
public:
constructor(*hash<auto> options);
setLogger(*LoggerInterface logger);
static RestClient::RestClient getRestConnection(*hash<auto> options);
string getName();
*string getDesc();
*list<hash<DataProvider::DataProviderSummaryInfo>> getChildProviderSummaryInfo();
protected:
*list<string> getChildProviderNamesImpl();
public:
protected:
*DataProvider::AbstractDataProvider getChildProviderImpl(string name);
public:
protected:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
public:
};
const SoftBoolStringType = new SoftBoolStringType();
const SoftBoolDataProviderStringType = AbstractDataProviderType::get(SoftBoolStringType);
class SoftBoolStringType : public Qore::Reflection::Type {
public:
constructor() ;
auto acceptsValue(auto value);
auto getDefaultValue();
};
};
DataProvider::AbstractDataProvider
ElasticSearchDataProvider::ElasticSearchDataProviderBase
The AWS REST client base data provider class.
Definition: ElasticSearchDataProviderBase.qc.dox.h:28
ElasticSearchDataProvider::ElasticSearchDataProvider::setLogger
setLogger(*LoggerInterface logger)
Accepts a LoggerInterface object for logging (or clears it)
ElasticSearchDataProvider::ElasticSearchDataProvider::getChildProviderNamesImpl
*list< string > getChildProviderNamesImpl()
Returns a list of child data provider names, if any.
ElasticSearchDataProvider::ElasticSearchDataProvider::getDesc
*string getDesc()
Returns the data provider description.
ElasticSearchDataProvider::ElasticSearchDataProvider::getChildProviderImpl
*DataProvider::AbstractDataProvider getChildProviderImpl(string name)
Returns the given child provider or NOTHING if the given child is unknown.
ElasticSearchDataProvider::ElasticSearchDataProvider::constructor
constructor(*hash< auto > options)
Creates the object from constructor options.
ElasticSearchDataProvider::ElasticSearchDataProvider::display_name
string display_name
The value to returns as the name of the object.
Definition: ElasticSearchDataProvider.qc.dox.h:35
ElasticSearchDataProvider::ElasticSearchDataProvider::getChildProviderSummaryInfo
*list< hash< DataProvider::DataProviderSummaryInfo > > getChildProviderSummaryInfo()
Return data provider summary info.
ElasticSearchDataProvider::ElasticSearchDataProvider::getName
string getName()
Returns the data provider name.
ElasticSearchDataProvider::ElasticSearchDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
ElasticSearchDataProvider::SoftBoolStringType
Boolean string type.
Definition: ElasticSearchDataProvider.qc.dox.h:141
ElasticSearchDataProvider::SoftBoolStringType::getDefaultValue
auto getDefaultValue()
Returns the default value for the type or NOTHING if the type has no default value.
ElasticSearchDataProvider::SoftBoolStringType::acceptsValue
auto acceptsValue(auto value)
Returns the value after any conversions by the type.
ElasticSearchDataProvider::SoftBoolStringType::constructor
constructor()
Creates the object.
RestClient::RestClient
ElasticSearchDataProvider
Qore ElasticSearchDataProvider module definition.
Definition: ElasticSearchAcknowledgedDataType.qc.dox.h:26
ElasticSearchDataProvider::SoftBoolDataProviderStringType
const SoftBoolDataProviderStringType
Boolean data provider string type for query parameters.
Definition: ElasticSearchDataProvider.qc.dox.h:138