Class ElasticsearchTransport.HttpFunction
- java.lang.Object
-
- org.apache.calcite.adapter.elasticsearch.ElasticsearchTransport.HttpFunction
-
- All Implemented Interfaces:
java.util.function.Function<org.apache.http.HttpRequest,org.elasticsearch.client.Response>
- Enclosing class:
- ElasticsearchTransport
private static class ElasticsearchTransport.HttpFunction extends java.lang.Object implements java.util.function.Function<org.apache.http.HttpRequest,org.elasticsearch.client.Response>
Basic rest operations interacting with elastic cluster.
-
-
Field Summary
Fields Modifier and Type Field Description private org.elasticsearch.client.RestClient
restClient
-
Constructor Summary
Constructors Constructor Description HttpFunction(org.elasticsearch.client.RestClient restClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.client.Response
apply(org.apache.http.HttpRequest request)
private org.elasticsearch.client.Response
applyInternal(org.apache.http.HttpRequest request)
-
-
-
Method Detail
-
apply
public org.elasticsearch.client.Response apply(org.apache.http.HttpRequest request)
- Specified by:
apply
in interfacejava.util.function.Function<org.apache.http.HttpRequest,org.elasticsearch.client.Response>
-
applyInternal
private org.elasticsearch.client.Response applyInternal(org.apache.http.HttpRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
-