类 ESFactory
java.lang.Object
tech.mhuang.pacebox.elasticsearch.server.ESFactory
- 所有已实现的接口:
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.UpdateResponseES更新<T> co.elastic.clients.elasticsearch.core.UpdateResponse数据更新
-
构造器详细资料
-
ESFactory
public ESFactory()
-
-
方法详细资料
-
setName
- 指定者:
setName在接口中IESFactory
-
setClient
public void setClient(co.elastic.clients.elasticsearch.ElasticsearchClient client) - 指定者:
setClient在接口中IESFactory
-
getBuilder
从接口复制的说明:IESFactory获取构造器- 指定者:
getBuilder在接口中IESFactory- 返回:
- ESSearchBuilder
-
getQuery
从接口复制的说明:IESFactory获取es查询实现类- 指定者:
getQuery在接口中IESFactory- 返回:
- AbstractESQuery
-
insert
插入- 指定者:
insert在接口中IESFactory- 参数:
t- 插入的数据- 返回:
- IndexResponse
- 抛出:
IOException
-
insert
public <T> co.elastic.clients.elasticsearch.core.IndexResponse insert(T t, String index) throws IOException 从接口复制的说明:IESFactory新增- 指定者:
insert在接口中IESFactory- 参数:
t- 新增的数据index- 新增的数据中的索引- 返回:
- String 返回id
- 抛出:
IOException- io异常
-
insert
public co.elastic.clients.elasticsearch.core.IndexResponse insert(String data, String index) throws IOException 从接口复制的说明:IESFactory新增- 指定者:
insert在接口中IESFactory- 参数:
data- 新增的数据index- 新增的数据中的索引- 返回:
- String 返回id
- 抛出:
IOException- io异常
-
update
public <T> co.elastic.clients.elasticsearch.core.UpdateResponse update(T t, String id) throws IOException ES更新- 指定者:
update在接口中IESFactory- 参数:
t- 更新的对象id- 修改的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常- 另请参阅:
-
update
public <T> co.elastic.clients.elasticsearch.core.UpdateResponse update(T t, String index, String id) throws IOException 从接口复制的说明:IESFactory数据更新- 指定者:
update在接口中IESFactory- 参数:
t- 更新的数据index- 更新的索引id- 更新的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常
-
delete
public co.elastic.clients.elasticsearch._types.AcknowledgedResponse delete(String index) throws IOException 从接口复制的说明:IESFactory删除索引及数据- 指定者:
delete在接口中IESFactory- 参数:
index- 索引- 返回:
- AcknowledgedResponse
- 抛出:
IOException
-
delete
public co.elastic.clients.elasticsearch.core.DeleteResponse delete(String index, String id) throws IOException 从接口复制的说明:IESFactory通过id删除数据- 指定者:
delete在接口中IESFactory- 参数:
index- 删除的索引id- 删除的id- 返回:
- DeleteResponse
- 抛出:
IOException
-
update
public co.elastic.clients.elasticsearch.core.UpdateResponse update(String data, String index, String id) throws IOException 从接口复制的说明:IESFactory数据更新- 指定者:
update在接口中IESFactory- 参数:
data- 更新的数据index- 更新的索引id- 更新的id- 返回:
- UpdateResponse
- 抛出:
IOException- io异常
-
getClient
public co.elastic.clients.elasticsearch.ElasticsearchClient getClient()从接口复制的说明:IESFactory获取链接- 指定者:
getClient在接口中IESFactory- 返回:
- TransportClient 返回链接对象
-