接口 IESFactory
- 所有已知实现类:
ESFactory
public interface IESFactory
es接口层
- 从以下版本开始:
- 1.0.0
- 作者:
- mhuang
-
方法概要
修饰符和类型方法说明co.elastic.clients.elasticsearch._types.AcknowledgedResponse删除索引及数据co.elastic.clients.elasticsearch.core.DeleteResponse通过id删除数据获取构造器co.elastic.clients.elasticsearch.ElasticsearchClient获取链接getQuery()获取es查询实现类co.elastic.clients.elasticsearch.core.IndexResponse新增<T> co.elastic.clients.elasticsearch.core.IndexResponseinsert(T t) 新增<T> co.elastic.clients.elasticsearch.core.IndexResponse新增voidsetClient(co.elastic.clients.elasticsearch.ElasticsearchClient client) voidco.elastic.clients.elasticsearch.core.UpdateResponse数据更新<T> co.elastic.clients.elasticsearch.core.UpdateResponse修改<T> co.elastic.clients.elasticsearch.core.UpdateResponse数据更新
-
方法详细资料
-
setName
-
setClient
void setClient(co.elastic.clients.elasticsearch.ElasticsearchClient client) -
getBuilder
ESSearchBuilder getBuilder()获取构造器- 返回:
- ESSearchBuilder
-
getQuery
AbstractESQuery getQuery()获取es查询实现类- 返回:
- AbstractESQuery
-
insert
新增- 参数:
t- 新增的数据- 返回:
- String 返回对应的id
- 抛出:
IOException
-
insert
<T> co.elastic.clients.elasticsearch.core.IndexResponse insert(T data, String index) throws IOException 新增- 参数:
data- 新增的数据index- 新增的数据中的索引- 返回:
- String 返回id
- 抛出:
IOException- io异常
-
insert
co.elastic.clients.elasticsearch.core.IndexResponse insert(String data, String index) throws IOException 新增- 参数:
data- 新增的数据index- 新增的数据中的索引- 返回:
- String 返回id
- 抛出:
IOException- io异常
-
update
修改- 参数:
t- 修改的数据id- 修改的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常
-
update
co.elastic.clients.elasticsearch.core.UpdateResponse update(String data, String index, String id) throws IOException 数据更新- 参数:
data- 更新的数据index- 更新的索引id- 更新的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常
-
update
<T> co.elastic.clients.elasticsearch.core.UpdateResponse update(T data, String index, String id) throws IOException 数据更新- 参数:
data- 更新的数据index- 更新的索引id- 更新的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常
-
delete
co.elastic.clients.elasticsearch._types.AcknowledgedResponse delete(String index) throws IOException 删除索引及数据- 参数:
index- 索引- 返回:
- AcknowledgedResponse
- 抛出:
IOException
-
delete
co.elastic.clients.elasticsearch.core.DeleteResponse delete(String index, String id) throws IOException 通过id删除数据- 参数:
index- 删除的索引id- 删除的id- 返回:
- DeleteResponse
- 抛出:
IOException
-
getClient
co.elastic.clients.elasticsearch.ElasticsearchClient getClient()获取链接- 返回:
- TransportClient 返回链接对象
-