public class Elasticsearch5Schema extends AbstractSchema implements ElasticsearchSchema
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 |
|---|
Elasticsearch5Schema(Map<String,Integer> coordinates,
Map<String,String> userConfig,
String indexName)
Creates an Elasticsearch5 schema.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIndex() |
protected Map<String,Table> |
getTableMap() |
private void |
open(List<InetSocketAddress> transportAddresses,
Map<String,String> userConfig) |
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutable, snapshotclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpression, getFunctionNames, getFunctions, getSubSchema, getSubSchemaNames, getTable, getTableNames, isMutable, snapshotfinal String index
private transient org.elasticsearch.client.Client client
Elasticsearch5Schema(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)
public String getIndex()
getIndex in interface ElasticsearchSchemaCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.