Deleting Interactions: Example 01

An Reltio Data Science example showing delete interactions.

Consider the dfPrescriptions Dataset with the following schema:

root|-- Id: string (nullable = true)

To delete IDs from the dataset:

type = "configuration/interactionTypes/Prescription"
val func : Delete = af.dataDelete()
  .withBuilder(
    new DeleteInteractionBuilder()
      .fromDataFrame(dfPrescriptions)
      .idColumn("Id")
      .ofType(type)
  )
  .build();
func.deleteAndGetJobId();