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
<dependency>
<groupId>com.cognite</groupId>
<artifactId>cdf-sdk-java</artifactId>
<version>0.9.2</version>
</dependency>
- Time series
- Assets
- Events
- Files
- Sequences
- Relationships
- Raw
- Data sets
- Labels
- Entity matching
- Interactive P&ID (experimental)