Skip to content

aksestok/cdf-sdk-java

 
 

Repository files navigation

java-main Actions Status

Cognite logo

Java sdk for CDF

Java SDK for reading and writing from/to CDF resources.

// Create the Cognite client
CogniteClient client = CogniteClient.ofKey(<yourApiKey>)
        .withBaseUrl("https://yourBaseURL.cognitedata.com");  //optional parameter
        
// List all assets
List<Asset> listAssetsResults = new ArrayList<>();
client.assets()
        .list(Request.create()
                .withFilterParameter("key", "value"))       //optionally add filter parameters
        .forEachRemaining(assetBatch -> listAssetsResults.addAll(assetBatch));        //results are read in batches

// List all events
List<Events> listEventsResults = new ArrayList<>();
client.events()
        .list(Request.create()
                .withFilterParameter("key", "value"))       //optionally add filter parameters
        .forEachRemaining(eventBatch -> listEventsResults.addAll(eventBatch));        //results are read in batches

Installing the sdk

<dependency>    
    <groupId>com.cognite</groupId>
    <artifactId>cdf-sdk-java</artifactId>
    <version>0.9.2</version>
</dependency>

Features

Core resource types

  • Time series
  • Assets
  • Events
  • Files
  • Sequences
  • Relationships
  • Raw

Data organization

  • Data sets
  • Labels

Contextualization

  • Entity matching
  • Interactive P&ID (experimental)

Open in Cloud Shell

About

Java SDK for Cognite Data Fusion

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%