Class ElasticsearchSchemaFactory
java.lang.Object
org.apache.calcite.adapter.elasticsearch.ElasticsearchSchemaFactory
- All Implemented Interfaces:
SchemaFactory
Factory that creates an
ElasticsearchSchema.
Allows a custom schema to be included in a model.json file.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ElasticsearchSchemaFactory
public ElasticsearchSchemaFactory()
-
-
Method Details
-
create
Create an ElasticSearchSchema. The operand property accepts the following key/value pairs:- username: The username for the ES cluster
- password: The password for the ES cluster
- hosts: A
Listof hosts for the ES cluster. Either the hosts or coordinates must be populated. - coordinates: A
Listof coordinates for the ES cluster. Either the hosts list or the coordinates list must be populated. - disableSSLVerification: A boolean parameter to disable SSL verification. Defaults to false. This should always be set to false for production systems.
- Specified by:
createin interfaceSchemaFactory- Parameters:
parentSchema- Parent schemaname- Name of this schemaoperand- The "operand" JSON property- Returns:
- Returns a
Schemafor the ES cluster.
-
getSortedHost
-