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:
STARTto indicate that a run has begun- One of the following to indicate that the run has finished:
COMPLETEto signify that execution of the run has concludedABORTto signify the run has been stopped abnormallyFAILto 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
Nested ClassesModifier and TypeClassDescriptionstatic classOpenLineageEvent.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
ConstructorsModifierConstructorDescriptionprotectedOpenLineageEvent(io.openlineage.client.OpenLineage.BaseEvent event) -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLineageEvent.OpenLineageEventBuilder<?, ?> protected booleanstatic OpenLineageEvent.OpenLineageEventBuilder<?, ?> creator(OpenLineageRun run, io.openlineage.client.OpenLineage.RunEvent.EventType type) Builds the minimal object necessary to create an OpenLineage event.voidemit(AtlanClient client) Send the OpenLineage event to Atlan to be processed.booleaninthashCode()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.- Parameters:
client- connectivity to an Atlan tenant- Throws:
AtlanException- on any API communication issues
-
toJson
Serialize the object to a JSON string.- Overrides:
toJsonin classAtlanObject- Parameters:
client- the client through which to serialize the object- Returns:
- the serialized JSON string
-
_internal
-
toBuilder
-
equals
- Overrides:
equalsin classAtlanObject
-
canEqual
- Overrides:
canEqualin classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classAtlanObject
-
toString
Description copied from class:AtlanObject- Overrides:
toStringin classAtlanObject
-