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 Modifier and Type Class Description static classTSPointsProtoCursorsResponseParser.Builder
-
Constructor Summary
Constructors Constructor Description TSPointsProtoCursorsResponseParser()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TSPointsProtoCursorsResponseParser.Builderbuilder()com.google.common.collect.ImmutableList<DataPointListItem>extractItems(byte[] payload)Extract the results items from a response body.Optional<String>extractNextCursor(byte[] payload)Extracts the nextCursor for the next iteration of timestamp points.abstract RequestgetRequest()abstract TSPointsProtoCursorsResponseParser.BuildertoBuilder()TSPointsProtoCursorsResponseParserwithRequest(Request parameters)
-
-
-
Method Detail
-
builder
public static TSPointsProtoCursorsResponseParser.Builder builder()
-
toBuilder
public abstract TSPointsProtoCursorsResponseParser.Builder toBuilder()
-
getRequest
public abstract Request getRequest()
-
withRequest
public TSPointsProtoCursorsResponseParser withRequest(Request parameters)
-
extractNextCursor
public Optional<String> extractNextCursor(byte[] payload) throws Exception
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
-
-