Interface UpsertTarget<T,R>

Type Parameters:
T - The type of the resource to upsert to CDF.
All Known Implementing Classes:
DataPoints, Events, Files, RawRows, Relationships, SequenceRows, Sequences, Timeseries

public interface UpsertTarget<T,R>
An interface for API endpoints that supports upserting a resource type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    upsert(List<T> objects)
    Upserts a collection of objects to Cognite Data Fusion.
  • Method Details

    • upsert

      List<R> upsert(List<T> objects) throws Exception
      Upserts a collection of objects to Cognite Data Fusion.

      If it is a new object (based on id / externalId, then it will be created.

      If the object already exists in Cognite Data Fusion, it will be updated. The update behavior is specified via the update mode in the ClientConfig settings.

      Parameters:
      objects - the objects to upsert to CDF
      Returns:
      a list of the confirmed upserted objects.
      Throws:
      Exception