use of io.openlineage.spark.api.CustomFacetBuilder in project OpenLineage by OpenLineage.
the class InternalEventHandlerFactory method createRunFacetBuilders.
@Override
public Collection<CustomFacetBuilder<?, ? extends RunFacet>> createRunFacetBuilders(OpenLineageContext context) {
Builder<CustomFacetBuilder<?, ? extends RunFacet>> listBuilder;
listBuilder = ImmutableList.<CustomFacetBuilder<?, ? extends RunFacet>>builder().addAll(generate(eventHandlerFactories, factory -> factory.createRunFacetBuilders((context)))).add(new ErrorFacetBuilder(), new LogicalPlanRunFacetBuilder(context), new SparkVersionFacetBuilder(context));
if (DatabricksEnvironmentFacetBuilder.isDatabricksRuntime()) {
listBuilder.add(new DatabricksEnvironmentFacetBuilder(context));
}
return listBuilder.build();
}
Aggregations