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
-
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
List
of hosts for the ES cluster. Either the hosts or coordinates must be populated. - coordinates: A
List
of 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:
create
in interfaceSchemaFactory
- Parameters:
parentSchema
- Parent schemaname
- Name of this schemaoperand
- The "operand" JSON property- Returns:
- Returns a
Schema
for the ES cluster.
-