Package com.cognite.client.servicesV1
Class ConnectorServiceV1
java.lang.Object
com.cognite.client.servicesV1.ConnectorServiceV1
- All Implemented Interfaces:
Serializable
The service handles connections to the Cognite REST api.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classReads items from the Cognite API.static classstatic classBase class for read and write requests.static classstatic classstatic classReads file binaries from the Cognite API.static classWrites files (header + binary) to the Cognite API.static classstatic classIterator for paging through requests based on response cursors.static classReads items from the Cognite API.static classReads 3D file binaries from the Cognite API. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelTransformationJobs(Request queryParameters) Stop running the jobConvert an engineering diagram in PDF format to an interactive SVG where the provided annotations are highlighted.static ConnectorServiceV1create()Delete Assets in Cognite.Delete data points in Cognite.Create a writer for deleting entity matcher models.Delete Events in Cognite.Delete extraction pipelines in Cognite.Delete Files (including headers) in Cognite.Delete labels in Cognite.Create Raw tables in a given database.Delete Assets in Cognite.deleteRawTableNames(String dbName) Delete Raw tables from a given database.Delete relationships in Cognite.Delete security categories in Cognite.Delete sequences headers in Cognite.Delete sequences rows in Cognite.deleteThreeDAssetMappings(Long modelId, Long revisionId) Create a writer for deleting 3D Models.deleteThreeDModelsRevisions(Long modelId) Create a writer for deleting 3D Models Revisions.Delete Transformation Notifications in Cognite.Delete Transformations in Cognite.Delete Transformations in Cognite.Delete TS headers in Cognite.Detect references to assets and files in an engineering diagram and annotate the references with bounding boxes.Create an entity matcher training executor.Create an entity matcher predict reader.filterThreeDAssetMappings(Long modelId, Long revisionId, Request requestParameters) filterThreeDNodes(Long modelId, Long revisionId, Request queryParameters) abstract CogniteClientstatic ConnectorServiceV1of(CogniteClient client) readAssets(Request queryParameters) Read assets from Cognite.Read assets aggregates from Cognite.Read assets by id from Cognite.Read cursors for retrieving events in parallel.readDataSets(Request queryParameters) Fetch data sets from Cognite.Read data sets aggregates from Cognite.Read data sets by id from Cognite.Create a reader for listing entity matcher models.readEvents(Request queryParameters) Read events from Cognite.Read events aggregates from Cognite.Read events by id from Cognite.readExtractionPipelineRuns(Request queryParameters) Read extraction pipeline runs from Cognite.readExtractionPipelines(Request queryParameters) Read extraction pipelines from Cognite.Read extraction pipelines by id from Cognite.Read file binaries from Cognite.readFileHeaders(Request queryParameters) List file headers from Cognite.Read files aggregates from Cognite.Read files by id from Cognite.readLabels(Request queryParameters) Read labels from Cognite.readRawDbNames(AuthConfig config) List the Raw database names from Cognite.Fetch a single row by row key.readRawRows(Request queryParameters) Fetch Raw rows from Cognite.readRawTableNames(String dbName, AuthConfig config) List the Raw tables for a given database.readRelationships(Request queryParameters) Fetch relationships from Cognite.Read relationships by id from Cognite.readSecurityCategories(Request queryParameters) Read security categories from Cognite.Read sequences aggregates from Cognite.Read sequences by id from Cognite.readSequencesHeaders(Request queryParameters) Fetch sequences headers from Cognite.readSequencesRows(Request queryParameters) Fetch sequences rows / body from Cognite.readThreeDAncestorNodes(Request queryParameters) readThreeDAssetMappings(Request requestParameters) Read 3D file binaries from Cognite.readThreeDModels(Request queryParameters) Fetch 3d models from Cognite.Read 3D Models by id from Cognite.readThreeDModelsRevisions(Request queryParameters) Read 3D Models Revisions from Cognite.readThreeDModelsRevisionsById(Long modelId) Read 3d models revisions by id from Cognite.readThreeDNodes(Request queryParameters) readThreeDNodesById(Long modelId, Long revisionId) Read 3d Available Outputs by modeId and revisionId from Cognite.readTransformationJobMetrics(Request requestParameters) List TransformationJobMetricsreadTransformationJobs(Request queryParameters) Filter Transformations in Cognite.Retrieve Transformations Jobs in Cognite.readTransformationNotifications(Request requestParameters) List Transformation NotificationsreadTransformations(Request queryParameters) Filter Transformations in Cognite.Retrieve Transformations in Cognite.readTransformationSchedules(Request requestParameters) List TransformationSchedulesRetrieve Transformations Jobs in Cognite.Read timeseries aggregates from Cognite.Read time series headers by id from Cognite.readTsDatapoints(Request queryParameters) Fetch timeseries datapoints from Cognite.Read latest data point from Cognite.readTsDatapointsProto(Request queryParameters) Fetch timeseries datapoints from Cognite using protobuf encoding.readTsHeaders(Request queryParameters) List timeseries headers from Cognite.runTransformationJobs(Request queryParameters) Start running the job in Cognite.Update Assets in Cognite.Update data sets in Cognite.Update Events in Cognite.Update extraction pipelines in Cognite.Update file headers to Cognite.Update relationships to Cognite.Update sequences headers in Cognite.Update 3D Models in Cognite.updateThreeDModelsRevisions(Long modelId) Update 3D Models Revisions in Cognite.updateThreeDTRevisionThumbnail(Long modelId, Long revisionId) Update the Thumbnail of Revision Calling this method will return anItemWriterUpdate Transformation to Cognite.Update Transformation Schedules to Cognite.Update time series headers in Cognite.Write Assets to Cognite.Write data sets to Cognite.Write Events to Cognite.Write extraction pipeline runs to Cognite.Write extraction pipelines to Cognite.Write files to Cognite.Write files to Cognite.Write labels to Cognite.Create Raw tables in a given database.Write rows to Raw in Cognite.writeRawTableNames(String dbName) Create Raw tables in a given database.Write relationships to Cognite.Write security categories to Cognite.Write sequences headers to Cognite.Write sequences rows to Cognite.writeThreeDAssetMappings(Long modelId, Long revisionId) Write 3D Models to Cognite.writeThreeDModelsRevisions(Long modelId) Write 3D Models Revisions to Cognite.Write Transformation to Cognite.Write Transformation Notifications to Cognite.Write Transformation Schedules to Cognite.Write time series headers to Cognite.Write time series data points to Cognite.Write time series headers to Cognite.
-
Field Details
-
LOG
protected final org.slf4j.Logger LOG
-
-
Constructor Details
-
ConnectorServiceV1
public ConnectorServiceV1()
-
-
Method Details
-
of
-
create
-
getClient
-
readAssets
Read assets from Cognite.- Parameters:
queryParameters- The parameters for the assets query.- Returns:
-
readAssetsAggregates
Read assets aggregates from Cognite.- Returns:
-
readAssetsById
Read assets by id from Cognite.- Returns:
-
writeAssets
Write Assets to Cognite. Calling this method will return anItemWriter- Returns:
-
updateAssets
Update Assets in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteAssets
Delete Assets in Cognite. Calling this method will return anItemWriter- Returns:
-
readEvents
Read events from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
readEventsAggregates
Read events aggregates from Cognite.- Returns:
-
readEventsById
Read events by id from Cognite.- Returns:
-
writeEvents
Write Events to Cognite. Calling this method will return anItemWriter- Returns:
-
updateEvents
Update Events in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteEvents
Delete Events in Cognite. Calling this method will return anItemWriter- Returns:
-
readSequencesHeaders
public ConnectorServiceV1.ResultFutureIterator<String> readSequencesHeaders(Request queryParameters) Fetch sequences headers from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
readSequencesAggregates
Read sequences aggregates from Cognite.- Returns:
-
readSequencesById
Read sequences by id from Cognite.- Returns:
-
writeSequencesHeaders
Write sequences headers to Cognite. Calling this method will return anItemWriter- Returns:
-
updateSequencesHeaders
Update sequences headers in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteSequencesHeaders
Delete sequences headers in Cognite. Calling this method will return anItemWriter- Returns:
-
readSequencesRows
Fetch sequences rows / body from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
writeSequencesRows
Write sequences rows to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteSequencesRows
Delete sequences rows in Cognite. Calling this method will return anItemWriter- Returns:
-
readTsHeaders
List timeseries headers from Cognite.- Parameters:
queryParameters- The parameters for the TS query.- Returns:
-
readTsAggregates
Read timeseries aggregates from Cognite.- Returns:
-
readTsById
Read time series headers by id from Cognite.- Returns:
-
writeTsHeaders
Write time series headers to Cognite. Calling this method will return anItemWriter- Returns:
-
updateTsHeaders
Update time series headers in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteTsHeaders
Delete TS headers in Cognite. Calling this method will return anItemWriter- Returns:
-
readTsDatapoints
Fetch timeseries datapoints from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
readTsDatapointsProto
public ConnectorServiceV1.ResultFutureIterator<DataPointListItem> readTsDatapointsProto(Request queryParameters) Fetch timeseries datapoints from Cognite using protobuf encoding.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
readTsDatapointsLatest
Read latest data point from Cognite.- Returns:
-
writeTsDatapoints
Write time series headers to Cognite. Calling this method will return anItemWriter- Returns:
-
writeTsDatapointsProto
Write time series data points to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteDatapoints
Delete data points in Cognite. Calling this method will return anItemWriter- Returns:
-
readRawRows
Fetch Raw rows from Cognite. This service can handle both single rows and large collection of rows.- Parameters:
queryParameters- The parameters for the raw query.- Returns:
-
readRawRow
Fetch a single row by row key.- Returns:
-
readCursorsRawRows
Read cursors for retrieving events in parallel. The results set is split into n partitions.- Returns:
-
writeRawRows
Write rows to Raw in Cognite. Calling this method will return anItemWriter -
deleteRawRows
Delete Assets in Cognite. Calling this method will return anItemWriter- Returns:
-
readRawDbNames
List the Raw database names from Cognite.- Returns:
-
writeRawDbNames
Create Raw tables in a given database.- Returns:
-
deleteRawDbNames
Create Raw tables in a given database.- Returns:
-
readRawTableNames
public ConnectorServiceV1.ResultFutureIterator<String> readRawTableNames(String dbName, AuthConfig config) List the Raw tables for a given database.- Parameters:
dbName- The name of the database to list tables from.- Returns:
-
writeRawTableNames
Create Raw tables in a given database.- Parameters:
dbName- The name of the database to list tables from.- Returns:
-
deleteRawTableNames
Delete Raw tables from a given database.- Parameters:
dbName- The name of the database to list tables from.- Returns:
-
readFileHeaders
List file headers from Cognite.- Parameters:
queryParameters- The parameters for the file query.- Returns:
-
readFilesAggregates
Read files aggregates from Cognite.- Returns:
-
readFilesById
Read files by id from Cognite.- Returns:
-
readFileBinariesByIds
Read file binaries from Cognite. Returns anFileBinaryReaderwhich can be used to read file binaries by id.- Returns:
-
readThreeDFileBinariesById
Read 3D file binaries from Cognite. Returns anFileBinaryReaderwhich can be used to read 3D file binaries by id.- Returns:
-
writeFileHeaders
Write files to Cognite. This is a two-step request with 1) post the file metadata / header and 2) post the file binary. This method returns anItemWriterto which you can post the file metadata / header. I.e. it performs step 1), but not step 2). The response from theItemWritercontains a URL reference for the file binary upload.- Returns:
-
writeFileProto
Write files to Cognite. This method returns anFileWriterto which you can post theFileContainerwith file metadata / header. I.e. this writer allows you to post both the file header and the file binary in a single method call. The response contains the the metadata response item for the file.- Returns:
-
updateFileHeaders
Update file headers to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteFiles
Delete Files (including headers) in Cognite. Calling this method will return anItemWriter- Returns:
-
readRelationships
Fetch relationships from Cognite.- Parameters:
queryParameters- The parameters for the data sets query.- Returns:
-
readRelationshipsById
Read relationships by id from Cognite.- Returns:
-
writeRelationships
Write relationships to Cognite. Calling this method will return anItemWriter- Returns:
-
updateRelationships
Update relationships to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteRelationships
Delete relationships in Cognite. Calling this method will return anItemWriter- Returns:
-
updateDataSets
Update data sets in Cognite. Calling this method will return anItemWriter- Returns:
-
readDataSets
Fetch data sets from Cognite.- Parameters:
queryParameters- The parameters for the data sets query.- Returns:
-
readDataSetsAggregates
Read data sets aggregates from Cognite.- Returns:
-
readDataSetsById
Read data sets by id from Cognite.- Returns:
-
writeDataSets
Write data sets to Cognite. Calling this method will return anItemWriter- Returns:
-
readExtractionPipelines
public ConnectorServiceV1.ResultFutureIterator<String> readExtractionPipelines(Request queryParameters) Read extraction pipelines from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
readExtractionPipelinesById
Read extraction pipelines by id from Cognite.- Returns:
-
writeExtractionPipelines
Write extraction pipelines to Cognite. Calling this method will return anItemWriter- Returns:
-
updateExtractionPipelines
Update extraction pipelines in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteExtractionPipelines
Delete extraction pipelines in Cognite. Calling this method will return anItemWriter- Returns:
-
readExtractionPipelineRuns
public ConnectorServiceV1.ResultFutureIterator<String> readExtractionPipelineRuns(Request queryParameters) Read extraction pipeline runs from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
writeExtractionPipelineRuns
Write extraction pipeline runs to Cognite. Calling this method will return anItemWriter- Returns:
-
readLabels
Read labels from Cognite.- Parameters:
queryParameters- The parameters for the data sets query.- Returns:
-
writeLabels
Write labels to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteLabels
Delete labels in Cognite. Calling this method will return anItemWriter- Returns:
-
readSecurityCategories
public ConnectorServiceV1.ResultFutureIterator<String> readSecurityCategories(Request queryParameters) Read security categories from Cognite.- Parameters:
queryParameters- The parameters for the security categories query.- Returns:
-
writeSecurityCategories
Write security categories to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteSecurityCategories
Delete security categories in Cognite. Calling this method will return anItemWriter- Returns:
-
detectAnnotationsDiagrams
Detect references to assets and files in an engineering diagram and annotate the references with bounding boxes. Finds entities in the engineering diagram that match a list of entity names, for instance asset names. The P&ID must be a single-page PDF file.- Returns:
-
convertDiagrams
Convert an engineering diagram in PDF format to an interactive SVG where the provided annotations are highlighted.- Returns:
-
readEntityMatcherModels
Create a reader for listing entity matcher models.- Returns:
- An
ItemReader<String>for reading the models.
-
deleteEntityMatcherModels
Create a writer for deleting entity matcher models.- Returns:
- An
ConnectorServiceV1.ItemWriterfor deleting the models
-
entityMatcherPredict
Create an entity matcher predict reader.- Returns:
-
entityMatcherFit
Create an entity matcher training executor.- Returns:
-
readThreeDModels
Fetch 3d models from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
writeThreeDModels
Write 3D Models to Cognite. Calling this method will return anItemWriter- Returns:
-
updateThreeDModels
Update 3D Models in Cognite. Calling this method will return anItemWriter- Returns:
-
deleteThreeDModels
Create a writer for deleting 3D Models.- Returns:
- An
ConnectorServiceV1.ItemWriterfor deleting the models
-
readThreeDModelsById
Read 3D Models by id from Cognite.- Returns:
-
readThreeDModelsRevisionsById
Read 3d models revisions by id from Cognite.- Returns:
-
readThreeDModelsRevisions
public Iterator<CompletableFuture<ResponseItems<String>>> readThreeDModelsRevisions(Request queryParameters) Read 3D Models Revisions from Cognite.- Parameters:
queryParameters- The parameters for the events query.- Returns:
-
writeThreeDModelsRevisions
Write 3D Models Revisions to Cognite. Calling this method will return anItemWriter- Parameters:
modelId- The id ofThreeDModelobject- Returns:
-
updateThreeDModelsRevisions
Update 3D Models Revisions in Cognite. Calling this method will return anItemWriter- Parameters:
modelId- The id ofThreeDModelobject- Returns:
-
deleteThreeDModelsRevisions
Create a writer for deleting 3D Models Revisions.- Parameters:
modelId- The id ofThreeDModelobject- Returns:
- An
ConnectorServiceV1.ItemWriterfor deleting the models
-
readThreeDOutputs
Read 3d Available Outputs by modeId and revisionId from Cognite.- Returns:
-
readThreeDRevisionLogs
-
readThreeDNodes
-
readThreeDNodes
-
filterThreeDNodes
public Iterator<CompletableFuture<ResponseItems<String>>> filterThreeDNodes(Long modelId, Long revisionId, Request queryParameters) -
readThreeDAncestorNodes
public Iterator<CompletableFuture<ResponseItems<String>>> readThreeDAncestorNodes(Request queryParameters) -
readThreeDAncestorNodes
-
readThreeDNodesById
-
updateThreeDTRevisionThumbnail
Update the Thumbnail of Revision Calling this method will return anItemWriter- Parameters:
modelId- The id ofThreeDModelobjectrevisionId- The id ofThreeDModelRevisionobject- Returns:
-
readThreeDAssetMappings
public Iterator<CompletableFuture<ResponseItems<String>>> readThreeDAssetMappings(Request requestParameters) -
filterThreeDAssetMappings
public Iterator<CompletableFuture<ResponseItems<String>>> filterThreeDAssetMappings(Long modelId, Long revisionId, Request requestParameters) -
writeThreeDAssetMappings
-
deleteThreeDAssetMappings
-
writeTransformation
Write Transformation to Cognite. Calling this method will return anItemWriter- Returns:
-
updateTransformation
Update Transformation to Cognite. Calling this method will return anItemWriter- Returns:
-
readTransformations
public Iterator<CompletableFuture<ResponseItems<String>>> readTransformations(Request queryParameters) Filter Transformations in Cognite.- Parameters:
queryParameters-- Returns:
-
deleteTransformations
Delete Transformations in Cognite. Calling this method will return anItemWriter- Returns:
-
readTransformationsById
Retrieve Transformations in Cognite.- Returns:
-
runTransformationJobs
Start running the job in Cognite.- Parameters:
queryParameters-- Returns:
-
cancelTransformationJobs
Stop running the job- Parameters:
queryParameters-- Returns:
-
readTransformationJobs
public Iterator<CompletableFuture<ResponseItems<String>>> readTransformationJobs(Request queryParameters) Filter Transformations in Cognite.- Parameters:
queryParameters-- Returns:
-
readTransformationJobsById
Retrieve Transformations Jobs in Cognite.- Returns:
-
readTransformationJobMetrics
public Iterator<CompletableFuture<ResponseItems<String>>> readTransformationJobMetrics(Request requestParameters) List TransformationJobMetrics- Returns:
-
writeTransformationSchedules
Write Transformation Schedules to Cognite. Calling this method will return anItemWriter- Returns:
-
updateTransformationSchedules
Update Transformation Schedules to Cognite. Calling this method will return anItemWriter- Returns:
-
readTransformationSchedules
public Iterator<CompletableFuture<ResponseItems<String>>> readTransformationSchedules(Request requestParameters) List TransformationSchedules- Returns:
-
readTransformationSchedulesById
Retrieve Transformations Jobs in Cognite.- Returns:
-
deleteTransformationSchedules
Delete Transformations in Cognite. Calling this method will return anItemWriter- Returns:
-
readTransformationNotifications
public Iterator<CompletableFuture<ResponseItems<String>>> readTransformationNotifications(Request requestParameters) List Transformation Notifications- Returns:
-
writeTransformationNotifications
Write Transformation Notifications to Cognite. Calling this method will return anItemWriter- Returns:
-
deleteTransformationNotifications
Delete Transformation Notifications in Cognite. Calling this method will return anItemWriter- Returns:
-