Class SearchResultConverter<T>
- java.lang.Object
-
- zipkin2.elasticsearch.internal.client.SearchResultConverter<T>
-
- All Implemented Interfaces:
HttpCall.BodyConverter<java.util.List<T>>
public class SearchResultConverter<T> extends java.lang.Object implements HttpCall.BodyConverter<java.util.List<T>>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SearchResultConverter(JsonSerializers.ObjectParser<T> adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>
convert(com.fasterxml.jackson.core.JsonParser parser, java.util.function.Supplier<java.lang.String> contentString)
Prefer using theparser
for request-scoped conversions.static <T> SearchResultConverter<T>
create(JsonSerializers.ObjectParser<T> adapter)
-
-
-
Constructor Detail
-
SearchResultConverter
protected SearchResultConverter(JsonSerializers.ObjectParser<T> adapter)
-
-
Method Detail
-
create
public static <T> SearchResultConverter<T> create(JsonSerializers.ObjectParser<T> adapter)
-
convert
public java.util.List<T> convert(com.fasterxml.jackson.core.JsonParser parser, java.util.function.Supplier<java.lang.String> contentString) throws java.io.IOException
Description copied from interface:HttpCall.BodyConverter
Prefer using theparser
for request-scoped conversions. Typically,contentString
is only for an unexpected failure.- Specified by:
convert
in interfaceHttpCall.BodyConverter<T>
- Throws:
java.io.IOException
-
-