Package com.cognite.client.servicesV1
Class ConnectorServiceV1.SingleRequestItemReader<T>
java.lang.Object
com.cognite.client.servicesV1.ConnectorServiceV1.ConnectorBase
com.cognite.client.servicesV1.ConnectorServiceV1.SingleRequestItemReader<T>
- All Implemented Interfaces:
ItemReader<T>,Serializable
- Enclosing class:
- ConnectorServiceV1
public abstract static class ConnectorServiceV1.SingleRequestItemReader<T>
extends ConnectorServiceV1.ConnectorBase
implements ItemReader<T>
Reads items from the Cognite API.
This reader targets API endpoints which complete its operation in a single request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecutes a request to get items and blocks the thread until all items have been downloaded.getItemsAsync(Request items) Executes an item-based request to get items asynchronously.
-
Constructor Details
-
SingleRequestItemReader
public SingleRequestItemReader()
-
-
Method Details
-
getItems
Executes a request to get items and blocks the thread until all items have been downloaded.- Specified by:
getItemsin interfaceItemReader<T>- Parameters:
items-- Returns:
- Throws:
Exception
-
getItemsAsync
Executes an item-based request to get items asynchronously.- Specified by:
getItemsAsyncin interfaceItemReader<T>- Parameters:
items-- Returns:
- Throws:
Exception
-