Class ElasticsearchUtil.Client
- java.lang.Object
-
- lumis.portal.bigdata.elasticsearch.ElasticsearchUtil.Client
-
- Enclosing class:
- ElasticsearchUtil
public abstract static class ElasticsearchUtil.Client extends java.lang.Object
Elasticsearch client-related operations.- Since:
- 14.0.0
- Version:
- $Revision: 24561 $ $Date: 2021-06-25 11:01:24 -0300 (Fri, 25 Jun 2021) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ElasticsearchUtil.Client.IResponseSupplier<REQ,RESP>
A code responsible to execute a request and produce a response.
-
Constructor Summary
Constructors Constructor Description Client()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <REQ,RESP>
RESPexecuteSync(REQ request, java.util.function.Function<org.elasticsearch.client.RestHighLevelClient,ElasticsearchUtil.Client.IResponseSupplier<REQ,RESP>> supplierCreator)
Executes the given request in Elasticsearch default repository.
-
-
-
Method Detail
-
executeSync
public static <REQ,RESP> RESP executeSync(REQ request, java.util.function.Function<org.elasticsearch.client.RestHighLevelClient,ElasticsearchUtil.Client.IResponseSupplier<REQ,RESP>> supplierCreator)
Executes the given request in Elasticsearch default repository.- Type Parameters:
REQ
- request typeRESP
- response type- Parameters:
request
- the requestsupplierCreator
- the supplier of a response creator- Returns:
- the response.
- Since:
- 14.0.0
-
-