Package com.atlan.model.lineage
Class OpenLineageEvent
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.lineage.OpenLineageEvent
- All Implemented Interfaces:
Serializable
Atlan wrapper for abstracting OpenLineage events.
An event is a point-in-time representation of the state of a run.
You must have at least two states for any run for Atlan to process it for lineage:
For more details, see OpenLineage docs.
An event is a point-in-time representation of the state of a run.
You must have at least two states for any run for Atlan to process it for lineage:
START
to indicate that a run has begun- One of the following to indicate that the run has finished:
COMPLETE
to signify that execution of the run has concludedABORT
to signify the run has been stopped abnormallyFAIL
to signify the run has failed
inputs
and outputs
defined. It is not necessary to include these
on all events; they will be merged from across all events for the same run (by matching on runId
).
For more details, see OpenLineage docs.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OpenLineageEvent.OpenLineageEventBuilder<C extends OpenLineageEvent,
B extends OpenLineageEvent.OpenLineageEventBuilder<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
OpenLineageEvent
(io.openlineage.client.OpenLineage.BaseEvent event) -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLineageEvent.OpenLineageEventBuilder<?,
?> protected boolean
static OpenLineageEvent.OpenLineageEventBuilder<?,
?> creator
(OpenLineageRun run, io.openlineage.client.OpenLineage.RunEvent.EventType type) Builds the minimal object necessary to create an OpenLineage event.void
emit()
Send the OpenLineage event to Atlan to be processed.void
emit
(AtlanClient client) Send the OpenLineage event to Atlan to be processed.boolean
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
-
OpenLineageEvent
public OpenLineageEvent(io.openlineage.client.OpenLineage.BaseEvent event) -
OpenLineageEvent
-
-
Method Details
-
creator
public static OpenLineageEvent.OpenLineageEventBuilder<?,?> creator(OpenLineageRun run, io.openlineage.client.OpenLineage.RunEvent.EventType type) Builds the minimal object necessary to create an OpenLineage event.- Parameters:
run
- the OpenLineage run for which to create a new event- Returns:
- the minimal request necessary to create the event, as a builder
-
emit
Send the OpenLineage event to Atlan to be processed.- Throws:
AtlanException
- on any API communication issues
-
emit
Send the OpenLineage event to Atlan to be processed.- Parameters:
client
- connectivity to an Atlan tenant- Throws:
AtlanException
- on any API communication issues
-
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
-