![]() |
Qore ElasticSearchDataProvider Module Reference 1.1
|
ElasticSearch REST connection. More...
#include <ElasticSearchRestConnection.qc.dox.h>
Public Member Functions | |
| constructor (hash< auto > config, *hash< auto > attr) | |
| creates the ElasticSearchRestConnection object | |
| constructor (string name, string description, string url, hash< auto > attributes={}, hash< auto > options={}) | |
| creates the ElasticSearchRestConnection object | |
| DataProvider::AbstractDataProvider | getDataProvider (*hash< auto > constructor_options) |
| returns a data provider object for this connection | |
| string | getType () |
returns "esrest" | |
Protected Member Functions | |
| RestClient | getImpl (bool connect=True, *hash< auto > rtopts) |
| returns a RestClient object | |
ElasticSearch REST connection.
| ElasticSearchDataProvider::ElasticSearchRestConnection::constructor | ( | hash< auto > | config, |
| *hash< auto > | attr ) |
creates the ElasticSearchRestConnection object
| config | with the following keys:
|
| attr | optional connection attributes
|
| CONNECTION-OPTION-ERROR | missing or invalid connection option or attribute |
| ElasticSearchDataProvider::ElasticSearchRestConnection::constructor | ( | string | name, |
| string | description, | ||
| string | url, | ||
| hash< auto > | attributes = {}, | ||
| hash< auto > | options = {} ) |
creates the ElasticSearchRestConnection object
| name | the name of the connection |
| description | connection description |
| url | connection URL (potentially with password info) |
| attributes | various attributes. See below |
| options | connection options |
See AbstractConnection::constructor() for attributes and options reference.
| CONNECTION-OPTION-ERROR | missing or invalid connection option |
| DataProvider::AbstractDataProvider ElasticSearchDataProvider::ElasticSearchRestConnection::getDataProvider | ( | *hash< auto > | constructor_options | ) |
returns a data provider object for this connection
| constructor_options | any additional constructor options for the data provider |
|
protected |
returns a RestClient object
| connect | if True, then the connection is returned already connected |
| rtopts | this connection type does not accept any runtime options, so this parameter is ignored |