public class ElasticsearchSchema extends AbstractSchema
Each table in the schema is an ELASTICSEARCH type in that index.
AbstractSchema.FactorySchema.TableType| Modifier and Type | Field and Description |
|---|---|
private org.elasticsearch.client.Client |
client |
(package private) String |
index |
| Constructor and Description |
|---|
ElasticsearchSchema(Map<String,Integer> coordinates,
Map<String,String> userConfig,
String indexName)
Creates an Elasticsearch schema.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
getTableMap() |
private void |
open(List<InetSocketAddress> transportAddresses,
Map<String,String> userConfig) |
contentsHaveChangedSince, getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutablefinal String index
private transient org.elasticsearch.client.Client client
ElasticsearchSchema(Map<String,Integer> coordinates, Map<String,String> userConfig, String indexName)
coordinates - Map of Elasticsearch node locations (host, port)userConfig - Map of user-specified configurationsindexName - Elasticsearch database name, e.g. "usa".protected Map<String,Table> getTableMap()
getTableMap in class AbstractSchemaprivate void open(List<InetSocketAddress> transportAddresses, Map<String,String> userConfig)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.