Class

OsduR2DeliverByQueryTask

OsduR2DeliverByQueryTask(osdu_service, data_partition)

Simple task to deliver records in batches based on a query and a transform functions

Constructor

# new OsduR2DeliverByQueryTask(osdu_service, data_partition)

Parameters:
Name Type Description
osdu_service OsduR2BaseService

An implementation of the OSDU service class to broker communication with the OSDU API services

data_partition string

The data partition against which requests will be made

View Source task/R2/deliverByQuery.js, line 12

Methods

# async execute() → {Object}

Execute the task, querying and delivering in batches based on the set query parameters

View Source task/R2/deliverByQuery.js, line 41

A summary of the performed task, including a map of delivered records deliveredRecords, the total count of records for the query totalCount, the number of batches that succeeded batches, the last cursor used (if an error was encountered) lastCursor, and the error that was thrown (if encountered) error

Object

# setQuery(query_params) → {OsduR2UpdateByQueryTask}

Set the query parameters to be used for batched query requests. Query params must have a file kind

Parameters:
Name Type Description
query_params Object

Query parameters built using the OsduQueryBuilder

View Source task/R2/deliverByQuery.js, line 28

Itself to allow chaining

new OsduR2DeliverByQueryTask

Methods