Loading...
Searching...
No Matches
ElasticSearchIndexTableDataProvider.qc.dox.h
// -*- mode: c++; indent-tabs-mode: nil -*-
namespace ElasticSearchDataProvider {
class ElasticSearchIndexTableDataProvider : public ElasticSearchDataProviderBase {
public:
string name;
hash<auto> index;
const ProviderInfo = ...;
const ProviderSummaryInfo = ...;
const TypeMap = ...;
const SearchQueryOptions = ("timeout",);
protected:
hash<string, AbstractDataField> record_type = {
"_id": new QoreDataField("_id", "the document ID", AbstractDataProviderTypeMap."softstring"),
"_score": new QoreDataField("_score", "the score for the match (read-only)", AbstractDataProviderTypeMap."float"),
};
public:
constructor(RestClient::RestClient rest, string name, hash<auto> index) ;
string getName();
*string getDesc();
protected:
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
int updateRecordsImpl(hash<auto> set, *hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
int deleteRecordsImpl(*hash<auto> where_cond, *hash<auto> search_options);
public:
protected:
*hash<auto> createRecordImpl(hash<auto> rec, *hash<auto> create_options);
public:
hash<DataProvider::DataProviderInfo> getStaticInfoImpl();
DataProvider::AbstractDataProviderType getTypeForProperty(string name, hash<auto> prop);
static string getQueryOptions(string uri, hash<auto> search_options, list<string> query_args);
protected:
string getDocUriPath(string uri_str, *hash<auto> where_cond, string action, *hash<auto> search_options, *list<string> query_args);
public:
protected:
getRecordInfoIntern();
public:
protected:
*hash<string, DataProvider::AbstractDataField> getRecordTypeImpl(*hash<auto> search_options);
public:
};
};
ElasticSearchDataProvider::ElasticSearchDataProviderBase
The ElasticSearch data provider base class.
Definition ElasticSearchDataProviderBase.qc.dox.h:28
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider
This class exposes ElasticSearch indices as record-based data providers.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:38
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::ProviderSummaryInfo
const ProviderSummaryInfo
Provider summary info.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:52
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::ProviderInfo
const ProviderInfo
Provider info.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:48
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getQueryOptions
static string getQueryOptions(string uri, hash< auto > search_options, list< string > query_args)
Returns a URI path with query options.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::searchRecordsImpl
DataProvider::AbstractDataProviderRecordIterator searchRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
Returns an iterator for zero or more records matching the search options.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::deleteRecordsImpl
int deleteRecordsImpl(*hash< auto > where_cond, *hash< auto > search_options)
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getTypeForProperty
DataProvider::AbstractDataProviderType getTypeForProperty(string name, hash< auto > prop)
Returns a data type for a property.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::SearchQueryOptions
const SearchQueryOptions
Search query options.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:60
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::constructor
constructor(RestClient::RestClient rest, string name, hash< auto > index)
Creates the object from a REST connection.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::updateRecordsImpl
int updateRecordsImpl(hash< auto > set, *hash< auto > where_cond, *hash< auto > search_options)
Updates a single document in the index.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getStaticInfoImpl
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getName
string getName()
Returns the data provider name.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::index
hash< auto > index
Index hash.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:45
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::record_type
hash< string, AbstractDataField > record_type
The record type for the object.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:64
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::createRecordImpl
*hash< auto > createRecordImpl(hash< auto > rec, *hash< auto > create_options)
Writes the given record to the data provider.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::name
string name
Current index name.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:42
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getRecordInfoIntern
getRecordInfoIntern()
Retrieves the record type.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getDesc
*string getDesc()
Returns the data provider description.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::getDocUriPath
string getDocUriPath(string uri_str, *hash< auto > where_cond, string action, *hash< auto > search_options, *list< string > query_args)
Makes sure that the where_cond is only the _id field.
ElasticSearchDataProvider::ElasticSearchIndexTableDataProvider::TypeMap
const TypeMap
ElasticSearch property types to data types.
Definition ElasticSearchIndexTableDataProvider.qc.dox.h:56
ElasticSearchDataProvider
Qore ElasticSearchDataProvider module definition.
Definition ElasticSearchAcknowledgedDataType.qc.dox.h:26