public abstract class EsTemplate extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ES_DEFAULT_TYPE |
| Constructor and Description |
|---|
EsTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
createIndex(String indexName) |
void |
createType(String indexName,
String typeName,
org.elasticsearch.common.xcontent.XContentBuilder contentBuilder) |
protected void |
doCreateIndex(String indexName) |
protected void |
doCreateType(String indexName,
String typeName,
org.elasticsearch.common.xcontent.XContentBuilder contentBuilder) |
protected org.elasticsearch.client.indices.GetIndexResponse |
doGetIndex(String indexName) |
protected boolean |
doIndexExists(String indexName) |
protected boolean |
doTypeExists(String indexName,
String typeName) |
protected org.elasticsearch.cluster.metadata.MappingMetaData |
doTypeMappings(String indexName,
String typeName) |
org.elasticsearch.client.indices.GetIndexResponse |
getIndex(String indexName) |
abstract org.elasticsearch.client.RequestOptions |
getRequestOptions() |
abstract org.elasticsearch.client.RestHighLevelClient |
getRestHighLevelClient() |
boolean |
indexExists(String indexName) |
boolean |
typeExists(String indexName,
String typeName) |
org.elasticsearch.cluster.metadata.MappingMetaData |
typeMappings(String indexName,
String typeName) |
public static final String ES_DEFAULT_TYPE
public abstract org.elasticsearch.client.RestHighLevelClient getRestHighLevelClient()
public abstract org.elasticsearch.client.RequestOptions getRequestOptions()
public org.elasticsearch.client.indices.GetIndexResponse getIndex(String indexName)
protected org.elasticsearch.client.indices.GetIndexResponse doGetIndex(String indexName) throws Exception
Exceptionpublic boolean indexExists(String indexName)
public void createIndex(String indexName)
public org.elasticsearch.cluster.metadata.MappingMetaData typeMappings(String indexName, String typeName)
protected org.elasticsearch.cluster.metadata.MappingMetaData doTypeMappings(String indexName, String typeName) throws Exception
Exceptionprotected boolean doTypeExists(String indexName, String typeName) throws Exception
Exceptionpublic void createType(String indexName, String typeName, org.elasticsearch.common.xcontent.XContentBuilder contentBuilder)
Copyright © 2019. All rights reserved.