Package zipkin2.elasticsearch.internal
Class JsonReaders
- java.lang.Object
-
- zipkin2.elasticsearch.internal.JsonReaders
-
public final class JsonReaders extends java.lang.Object
Utilities used here aim to reduce allocation overhead for common requests. It does so by skipping unrelated fields. This is used for responses which could be large.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
collectValuesNamed(com.fasterxml.jackson.core.JsonParser parser, java.lang.String name)
static com.fasterxml.jackson.core.JsonParser
enterPath(com.fasterxml.jackson.core.JsonParser parser, java.lang.String path)
static com.fasterxml.jackson.core.JsonParser
enterPath(com.fasterxml.jackson.core.JsonParser parser, java.lang.String path1, java.lang.String path2)
Navigates to a field of a JSON-serialized object.
-
-
-
Method Detail
-
enterPath
@Nullable public static com.fasterxml.jackson.core.JsonParser enterPath(com.fasterxml.jackson.core.JsonParser parser, java.lang.String path1, java.lang.String path2) throws java.io.IOException
Navigates to a field of a JSON-serialized object. For example,JsonParser status = enterPath(JsonAdapters.jsonParser(stream), "message", "status"); if (status != null) throw new IllegalStateException(status.nextString());
- Throws:
java.io.IOException
-
enterPath
@Nullable public static com.fasterxml.jackson.core.JsonParser enterPath(com.fasterxml.jackson.core.JsonParser parser, java.lang.String path) throws java.io.IOException
- Throws:
java.io.IOException
-
collectValuesNamed
public static java.util.List<java.lang.String> collectValuesNamed(com.fasterxml.jackson.core.JsonParser parser, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
-