Data Operation - Define

Undraw Data Processing

Data Operation - Define

Define

define is a supplier operation that defines one or more inline data resources in a pipeline file.

Note that a select operation may not return any data resources but the define operation must return always the data resource that it defines.

This is a first step of a pipeline (known as the supplier step) because it supplies data resources to the others operations (known as intermediate) in the pipeline.

Example

Arguments

The define operation accepts the following arguments.

Arguments Default Definition
data-resource One data_resource_definition
data-resources A list of data_resource_definition
processing-type batch The processing type (batch or stream)

Data resource Definition

The following argument defines one data resource and can be set:

  • once in the data-resource argument
  • multiple time in the data-resources argument

You can define a data resource by:

  • data-uri
  • or by data (inline rows)

but not both

Arguments Mandatory Definition
One resource definition by Data Uri
data-uri only if data is not defined The data uri is the location of the resource
media-type The media type of the data uri resource
One resource definition by Data
data only if data-uri is not defined The data as a list of records (the data are in the inline)
The optional data attributes
data-def no The data attributes in a data definition format

Processing Type




Related HowTo
Undraw Data Processing
How to add information about the selected resources with the Enrich operation ?

enrich is an intermediate operation that will add virtual columns to its inputs thanks to data supplier. Enrich accepts only one argument data-def where you can define extra columns called virtual columns...
Undraw Data Processing
How to send to a mailing list

This howto shows you how to send multiple email with the sendmail operation. Start the howto smtp server Check that you can ping it In this pipeline, we define a inline data resource but you...
Undraw Data Processing
How to use the define operation?

This howto shows you how to use the define data operation to create data resources in the pipeline file (ie inline data resources) This operation is only available as step in a pipeline (ie not in a tabul...

Task Runner