Package com.cognite.client.servicesV1
Class ConnectorServiceV1.ItemWriter
- java.lang.Object
-
- com.cognite.client.servicesV1.ConnectorServiceV1.ItemWriter
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ConnectorServiceV1
public abstract static class ConnectorServiceV1.ItemWriter extends Object
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ResponseParser<String>
getDuplicatesResponseParser()
ConnectorServiceV1.ItemWriter
withDuplicatesResponseParser(ResponseParser<String> parser)
Configures the duplicates response parser to use.ResponseItems<String>
writeItems(Request items)
Executes an item-based write request.CompletableFuture<ResponseItems<String>>
writeItemsAsync(Request items)
Executes an item-based write request asynchronously.
-
-
-
Method Detail
-
getDuplicatesResponseParser
public abstract ResponseParser<String> getDuplicatesResponseParser()
-
withDuplicatesResponseParser
public ConnectorServiceV1.ItemWriter withDuplicatesResponseParser(ResponseParser<String> parser)
Configures the duplicates response parser to use. The default duplicates response parser looks for duplicates at theerror.duplicates
node in the response.- Parameters:
parser
-- Returns:
-
writeItems
public ResponseItems<String> writeItems(Request items) throws Exception
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
public CompletableFuture<ResponseItems<String>> writeItemsAsync(Request items) throws Exception
Executes an item-based write request asynchronously.- Parameters:
items
-- Returns:
- Throws:
Exception
-
-