Class JsonRawRowResponseParser
java.lang.Object
com.cognite.client.servicesV1.response.DefaultResponseParser
com.cognite.client.servicesV1.response.JsonRawRowResponseParser
- All Implemented Interfaces:
ResponseParser<String>,Serializable
Parses responses containing one or more raw rows. This class contains logic to detect if the items are wrapped in
an items array or if a single item is placed at the root.
In the case of querying for a single row (by id/row key), only a single item is returned at the json root.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
instanceId, LOG, MAX_LENGTH_JSON_LOG, objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()com.google.common.collect.ImmutableList<String>extractItems(String json) Extract the main items from a results json payload corresponding to v0.6 spec.abstract JsonRawRowResponseParser.BuilderMethods inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
extractItems, extractNextCursor, extractNextCursor, parseToString
-
Constructor Details
-
JsonRawRowResponseParser
public JsonRawRowResponseParser()
-
-
Method Details
-
builder
-
toBuilder
-
extractItems
Extract the main items from a results json payload corresponding to v0.6 spec.- Overrides:
extractItemsin classDefaultResponseParser- Parameters:
json- The results json payload- Returns:
- Throws:
IOExceptionIOExceptionException
-