Class TSPointsProtoCursorsResponseParser
java.lang.Object
com.cognite.client.servicesV1.response.TSPointsProtoCursorsResponseParser
- All Implemented Interfaces:
ResponseParser<DataPointListItem>
public abstract class TSPointsProtoCursorsResponseParser
extends Object
implements ResponseParser<DataPointListItem>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()com.google.common.collect.ImmutableList<DataPointListItem>extractItems(byte[] payload) Extract the results items from a response body.extractNextCursor(byte[] payload) Extracts the nextCursor for the next iteration of timestamp points.abstract RequestwithRequest(Request parameters)
-
Constructor Details
-
TSPointsProtoCursorsResponseParser
public TSPointsProtoCursorsResponseParser()
-
-
Method Details
-
builder
-
toBuilder
-
getRequest
-
withRequest
-
extractNextCursor
Extracts the nextCursor for the next iteration of timestamp points. The cursor is a json object with each TS *externalId* (or id, if no externalId exists) mapped to the nextCursor value.- Specified by:
extractNextCursorin interfaceResponseParser<DataPointListItem>- Parameters:
payload- The response body- Returns:
- Throws:
ExceptionIOException
-
extractItems
public com.google.common.collect.ImmutableList<DataPointListItem> extractItems(byte[] payload) throws Exception Extract the results items from a response body.- Specified by:
extractItemsin interfaceResponseParser<DataPointListItem>- Parameters:
payload- The reponse body- Returns:
- Throws:
Exception
-