Package com.cognite.client.servicesV1
Class ConnectorServiceV1.ItemWriter
java.lang.Object
com.cognite.client.servicesV1.ConnectorServiceV1.ConnectorBase
com.cognite.client.servicesV1.ConnectorServiceV1.ItemWriter
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ConnectorServiceV1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ResponseParser<String>Configures the duplicates response parser to use.withRequestExecutor(RequestExecutor requestExecutor) Configure a specificRequestExecutorto handle the HTTP(S) request against the Cognnite API.writeItems(Request items) Executes an item-based write request.writeItemsAsync(Request items) Executes an item-based write request asynchronously.
-
Constructor Details
-
ItemWriter
public ItemWriter()
-
-
Method Details
-
getDuplicatesResponseParser
-
withDuplicatesResponseParser
Configures the duplicates response parser to use. The default duplicates response parser looks for duplicates at theerror.duplicatesnode in the response.- Parameters:
parser-- Returns:
-
withRequestExecutor
Configure a specificRequestExecutorto handle the HTTP(S) request against the Cognnite API.- Parameters:
requestExecutor- The RequestExecutor to use.- Returns:
- ItemWriter with the configured RequestExecutor.
-
writeItems
Executes an item-based write request. This method will block until the response is ready. The async version of this method iswriteItemsAsync.- Parameters:
items-- Returns:
- Throws:
Exception
-
writeItemsAsync
Executes an item-based write request asynchronously.- Parameters:
items-- Returns:
- Throws:
Exception
-