public class ElasticsearchSchemaFactory extends Object implements org.apache.calcite.schema.SchemaFactory
ElasticsearchSchema.
Allows a custom schema to be included in a model.json file.
| Constructor and Description |
|---|
ElasticsearchSchemaFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.schema.Schema |
create(org.apache.calcite.schema.SchemaPlus parentSchema,
String name,
Map<String,Object> operand)
Create an ElasticSearch
Schema. |
protected static List<org.apache.http.HttpHost> |
getSortedHost(List<org.apache.http.HttpHost> hosts) |
public org.apache.calcite.schema.Schema create(org.apache.calcite.schema.SchemaPlus parentSchema,
String name,
Map<String,Object> operand)
Schema.
The operand property accepts the following key/value pairs:
List of hosts for the ES cluster. Either the hosts or
coordinates must be populated.List of coordinates for the ES cluster. Either the hosts
list or
the coordinates list must be populated.create in interface org.apache.calcite.schema.SchemaFactoryparentSchema - Parent schemaname - Name of this schemaoperand - The "operand" JSON propertySchema for the ES cluster.Copyright © 2012-2025 Apache Software Foundation. All Rights Reserved.