Package io.openlineage.client
Class OpenLineage.JobTypeJobFacetEmissionPatternBuilder
java.lang.Object
io.openlineage.client.OpenLineage.JobTypeJobFacetEmissionPatternBuilder
- All Implemented Interfaces:
OpenLineage.Builder<OpenLineage.JobTypeJobFacetEmissionPattern>
- Enclosing class:
- OpenLineage
public static final class OpenLineage.JobTypeJobFacetEmissionPatternBuilder
extends Object
implements OpenLineage.Builder<OpenLineage.JobTypeJobFacetEmissionPattern>
builder class for JobTypeJobFacetEmissionPattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()build an instance of JobTypeJobFacetEmissionPattern from the fields set in the buildereventContentMode(String eventContentMode) eventTrigger(String eventTrigger) windowDuration(Long windowDuration)
-
Constructor Details
-
JobTypeJobFacetEmissionPatternBuilder
public JobTypeJobFacetEmissionPatternBuilder()
-
-
Method Details
-
eventTrigger
- Parameters:
eventTrigger- Defines when events are emitted. EVENT_BASED: events emitted on lifecycle transitions (START/COMPLETE/FAIL/ABORT). PERIODIC: events emitted at regular time intervals.- Returns:
- this
-
eventContentMode
- Parameters:
eventContentMode- Define if individual events are self-sufficient and can be processed individually, or need to be combined by consumer. ACCUMULATIVE: Events may contain only partial information and the complete information can be collected by combining information from all the events emitted by a specific job run. COMPLETE_SNAPSHOT: events contain complete state for a specific time window (events can be processed independently).- Returns:
- this
-
windowDuration
- Parameters:
windowDuration- Time window duration for periodic event emissions in seconds. Only applicable when eventTrigger is PERIODIC. Required when eventTrigger is PERIODIC and eventContentMode is COMPLETE_SNAPSHOT.- Returns:
- this
-
build
build an instance of JobTypeJobFacetEmissionPattern from the fields set in the builder- Specified by:
buildin interfaceOpenLineage.Builder<OpenLineage.JobTypeJobFacetEmissionPattern>- Returns:
- the constructed type
-