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 protectedSearchResultConverter(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 theparserfor 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.BodyConverterPrefer using theparserfor request-scoped conversions. Typically,contentStringis only for an unexpected failure.- Specified by:
convertin interfaceHttpCall.BodyConverter<T>- Throws:
java.io.IOException
-
-