Package com.atlan.model.lineage
Class OpenLineageJob
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.lineage.OpenLineageJob
- All Implemented Interfaces:
Serializable
Atlan wrapper for abstracting OpenLineage jobs.
A job is a process that consumes or produces datasets.
This is abstract, and can map to different things in different operational contexts. For example, a job could be a task in a workflow orchestration system. It could also be a model, a query, or a checkpoint. Depending on the system under observation, a Job can represent a small or large amount of work.
For more details, see OpenLineage docs.
A job is a process that consumes or produces datasets.
This is abstract, and can map to different things in different operational contexts. For example, a job could be a task in a workflow orchestration system. It could also be a model, a query, or a checkpoint. Depending on the system under observation, a Job can represent a small or large amount of work.
For more details, see OpenLineage docs.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OpenLineageJob.OpenLineageJobBuilder<C extends OpenLineageJob,
B extends OpenLineageJob.OpenLineageJobBuilder<C, B>> Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
OpenLineageJob
(io.openlineage.client.OpenLineage openLineage, io.openlineage.client.OpenLineage.Job job) Pass-through constructor for an Atlan wrapping of an existing OpenLineage job. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLineageJob.OpenLineageJobBuilder<?,
?> protected boolean
createDataset
(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset.createInput
(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset, wired to use as an input (source) for lineage.createOutput
(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset, wired to use as an output (target) for lineage.static OpenLineageJob.OpenLineageJobBuilder<?,
?> Builds the minimal object necessary to create an OpenLineage job.boolean
io.openlineage.client.OpenLineage
Producer definition for OpenLineage.int
hashCode()
toJson
(AtlanClient client) Serialize the object to a JSON string.toString()
Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject
-
Constructor Details
-
OpenLineageJob
public OpenLineageJob(io.openlineage.client.OpenLineage openLineage, io.openlineage.client.OpenLineage.Job job) Pass-through constructor for an Atlan wrapping of an existing OpenLineage job.- Parameters:
openLineage
- definition of the OpenLineage producerjob
- an OpenLineage job object that already exists
-
OpenLineageJob
-
-
Method Details
-
creator
public static OpenLineageJob.OpenLineageJobBuilder<?,?> creator(String connectionName, String jobName, String producer) Builds the minimal object necessary to create an OpenLineage job.- Parameters:
connectionName
- name of the Spark connection in which the OpenLineage job should be createdjobName
- unique name of the job - if it already exists the existing job will be updatedproducer
- URI indicating the code or software that implements this job- Returns:
- the minimal request necessary to create the job, as a builder
-
createDataset
public OpenLineageDataset.OpenLineageDatasetBuilder<?,?> createDataset(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset. Note: before you can use the dataset, you will need to wire it as either an input or output using eithertoInput()
ortoOutput()
.- Parameters:
namespace
- name of the source of the asset (see: https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md)assetName
- name of the asset, by OpenLineage standard (for example, DB.SCHEMA.TABLE)- Returns:
- the minimal request necessary to create the dataset, as a builder
-
createInput
public OpenLineageInputDataset.OpenLineageInputDatasetBuilder<?,?> createInput(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset, wired to use as an input (source) for lineage.- Parameters:
namespace
- name of the source of the asset (see: https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md)assetName
- name of the asset, by OpenLineage standard (for example, DB.SCHEMA.TABLE)- Returns:
- the minimal request necessary to create the dataset, as a builder
-
createOutput
public OpenLineageOutputDataset.OpenLineageOutputDatasetBuilder<?,?> createOutput(String namespace, String assetName) Builds the minimal object necessary to create an OpenLineage dataset, wired to use as an output (target) for lineage.- Parameters:
namespace
- name of the source of the asset (see: https://github.com/OpenLineage/OpenLineage/blob/main/spec/Naming.md)assetName
- name of the asset, by OpenLineage standard (for example, DB.SCHEMA.TABLE)- Returns:
- the minimal request necessary to create the dataset, as a builder
-
toJson
Serialize the object to a JSON string.- Overrides:
toJson
in classAtlanObject
- Parameters:
client
- the client through which to serialize the object- Returns:
- the serialized JSON string
-
_internal
-
toBuilder
-
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-
getOpenLineage
public io.openlineage.client.OpenLineage getOpenLineage()Producer definition for OpenLineage.
-