程序包 com.sh.wf.util
类 ESRestUtil
java.lang.Object
com.sh.wf.util.ESRestUtil
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2018年7月24日
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Datastorestatic StringDeleteRequest(String endpoint) static StringDeleteRequest(String endpoint, String dsl) static Stringstatic JSONObjectDeleteRequestWithJSON(String endpoint, String dsl) static JSONObjectstatic JSONObjectDeleteRequestWithJSON2(String endpoint, String dsl) static JSONObjectstatic StringGetRequest(String endpoint, String dsl) static Stringstatic DatastoregetRequestWithDatastore(String endpoint, String dsl) static Datastorestatic JSONObjectGetRequestWithJSON(String endpoint, String dsl) static JSONObjectstatic JSONObjectGetRequestWithJSON2(String endpoint, String dsl) static JSONObjectstatic StringPostRequest(String endpoint, String dsl) static Stringstatic DatastorepostRequestWithDatastore(String endpoint, String dsl) static JSONObjectPostRequestWithJSON(String endpoint, String dsl) static JSONObjectstatic JSONObjectPostRequestWithJSON2(String endpoint, String dsl) static JSONObjectstatic String发起请求查询es数据static JSONObjectstatic JSONObjectstatic StringPutRequest(String endpoint, String dsl) static Stringstatic JSONObjectPutRequestWithJSON(String endpoint, String dsl) static JSONObjectstatic JSONObjectPutRequestWithJSON2(String endpoint, String dsl) static JSONObjectstatic JSONObjectQueryBySQL(String sql) 按SQL进行查询,要求elasticsearch7.3以后的版本static JSONObjectQueryBySQL2(String sql) static DatastorequeryIndexColumn(String indexName)
-
构造器详细资料
-
ESRestUtil
public ESRestUtil()
-
-
方法详细资料
-
GetRequest
-
GetRequest
-
PostRequest
-
PostRequest
-
PutRequest
-
PutRequest
-
DeleteRequest
-
DeleteRequest
-
DeleteRequest
-
GetRequestWithJSON2
-
GetRequestWithJSON
-
getRequestWithDatastore
-
GetRequestWithJSON2
-
GetRequestWithJSON
-
getRequestWithDatastore
-
PostRequestWithJSON2
-
PostRequestWithJSON
-
postRequestWithDatastore
-
convertJSON2Datastore
-
PostRequestWithJSON2
-
PostRequestWithJSON
-
PutRequestWithJSON2
-
PutRequestWithJSON
-
PutRequestWithJSON2
-
PutRequestWithJSON
-
DeleteRequestWithJSON2
-
DeleteRequestWithJSON
-
DeleteRequestWithJSON2
-
DeleteRequestWithJSON
-
QueryBySQL2
-
QueryBySQL
按SQL进行查询,要求elasticsearch7.3以后的版本- 参数:
sql- String- 返回:
- JSONObject
-
queryIndexColumn
-
processRequestWithJSON2
-
processRequestWithJSON
-
processRequest
public static String processRequest(String method, String endpoint, String dsl, Map<String, String> params) 发起请求查询es数据- 参数:
method- GET/POST/PUT/DELETEendpoint- shforce/employee/_searchdsl- 查询dsl语句params- 参数- 返回:
- String
-