Class ElasticsearchSchemaFactory

java.lang.Object
org.apache.calcite.adapter.elasticsearch.ElasticsearchSchemaFactory
All Implemented Interfaces:
SchemaFactory

public class ElasticsearchSchemaFactory extends Object implements SchemaFactory
Factory that creates an ElasticsearchSchema.

Allows a custom schema to be included in a model.json file.

  • Constructor Details

    • ElasticsearchSchemaFactory

      public ElasticsearchSchemaFactory()
  • Method Details

    • create

      public Schema create(SchemaPlus parentSchema, String name, Map<String,Object> operand)
      Create an ElasticSearch Schema. 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 interface SchemaFactory
      Parameters:
      parentSchema - Parent schema
      name - Name of this schema
      operand - The "operand" JSON property
      Returns:
      Returns a Schema for the ES cluster.