Class ElasticsearchTransport.JsonParserFn<T>
- java.lang.Object
-
- org.apache.calcite.adapter.elasticsearch.ElasticsearchTransport.JsonParserFn<T>
-
- Type Parameters:
T
- result type
- All Implemented Interfaces:
java.util.function.Function<org.elasticsearch.client.Response,T>
- Enclosing class:
- ElasticsearchTransport
private static class ElasticsearchTransport.JsonParserFn<T> extends java.lang.Object implements java.util.function.Function<org.elasticsearch.client.Response,T>
Parses HTTP response into some class using jackson API.
-
-
Constructor Summary
Constructors Constructor Description JsonParserFn(com.fasterxml.jackson.databind.ObjectMapper mapper, java.lang.Class<T> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
apply(org.elasticsearch.client.Response response)
-